本文整理汇总了C++中CGUIWindow::Render方法的典型用法代码示例。如果您正苦于以下问题:C++ CGUIWindow::Render方法的具体用法?C++ CGUIWindow::Render怎么用?C++ CGUIWindow::Render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CGUIWindow
的用法示例。
在下文中一共展示了CGUIWindow::Render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Render
void CGUIWindowManager::Render()
{
assert(g_application.IsCurrentThread());
CSingleLock lock(g_graphicsContext);
CGUIWindow* pWindow = GetWindow(GetActiveWindow());
if (pWindow)
{
pWindow->ClearBackground();
pWindow->Render();
}
// we render the dialogs based on their render order.
vector<CGUIWindow *> renderList = m_activeDialogs;
stable_sort(renderList.begin(), renderList.end(), RenderOrderSortFunction);
for (iDialog it = renderList.begin(); it != renderList.end(); ++it)
{
if ((*it)->IsDialogRunning())
(*it)->Render();
}
}
示例2: Render_Internal
void CGUIWindowManager::Render_Internal()
{
CSingleLock lock(g_graphicsContext);
int nActive = GetActiveWindow();
CGUIWindow* pWindow = GetWindow(nActive);
if(!pWindow && (nActive < WINDOW_APPS_START || nActive > WINDOW_APPS_END))
{
g_graphicsContext.Clear();
return;
}
m_bUseFBO = g_WindowManagerFBO.IsSupported() && IsColorBufferActive();
// FBO don't work in Win32 GLES emulator
#if defined(_WIN32) && defined(HAS_GLES)
m_bUseFBO = false;
#endif
if(g_graphicsContext.GetRenderLowresGraphics())
m_bUseFBO = false;
#ifdef HAS_EMBEDDED
if(g_application.IsPlaying())
m_bUseFBO = false;
#endif
if(!m_bUseFBO)
{
m_bFBOValid = false;
pWindow->Render();
}
else
{
RenderUsingFBO(pWindow);
}
}