本文整理汇总了C++中Background::GetDirtyList方法的典型用法代码示例。如果您正苦于以下问题:C++ Background::GetDirtyList方法的具体用法?C++ Background::GetDirtyList怎么用?C++ Background::GetDirtyList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Background
的用法示例。
在下文中一共展示了Background::GetDirtyList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: background_draw_handler
AUI_ERRCODE background_draw_handler(LPVOID bg)
{
Background * back = reinterpret_cast<Background *>(bg);
aui_Surface * surface = (back) ? back->TheSurface() : NULL;
aui_Mouse * mouse = (g_c3ui) ? g_c3ui->TheMouse() : NULL;
if (!mouse || !g_tiledMap)
{
// Busy initialising: postpone drawing until ready.
return AUI_ERRCODE_INVALIDPARAM;
}
if (g_modalWindow > 0)
{
g_screenManager->LockSurface(surface);
g_tiledMap->DrawChatText();
g_screenManager->UnlockSurface();
return AUI_ERRCODE_OK;
}
g_tiledMap->UpdateMixFromMap(surface);
if (g_theProfileDB->IsWaterAnim())
{
g_tiledMap->DrawWater();
}
g_theTradePool->Draw(surface);
g_tiledMap->RepaintSprites(surface, g_tiledMap->GetMapViewRect(), false);
if (g_director)
{
g_director->GarbageCollectItems();
}
g_tiledMap->DrawUnfinishedMove(surface);
POINT pos;
pos.y = mouse->Y() - back->Y();
if (pos.y < back->Height())
{
g_tiledMap->DrawHiliteMouseTile(surface);
g_tiledMap->DrawLegalMove(surface);
}
#ifdef _PLAYTEST
switch(g_debugOwner)
{
#ifdef _DEBUG
case k_DEBUG_OWNER_CRC:
if(g_dataCheck) {
g_dataCheck->DisplayCRC(surface);
g_tiledMap->InvalidateMix();
}
break;
case k_DEBUG_OWNER_NETWORK_CHAT:
g_network.DisplayChat(surface);
g_tiledMap->InvalidateMix();
break;
#endif
case k_DEBUG_OWNER_COMMANDLINE:
g_commandLine.DisplayOutput(surface);
g_tiledMap->InvalidateMix();
break;
case k_DEBUG_OWNER_FRAME_RATE:
DisplayFrame (surface);
break;
default:
break;
}
#endif // _PLAYTEST
g_tiledMap->CopyMixDirtyRects(back->GetDirtyList());
g_tiledMap->ClearMixDirtyRects();
return AUI_ERRCODE_OK;
}