本文整理汇总了C++中ITexture::GetImageFormat方法的典型用法代码示例。如果您正苦于以下问题:C++ ITexture::GetImageFormat方法的具体用法?C++ ITexture::GetImageFormat怎么用?C++ ITexture::GetImageFormat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITexture
的用法示例。
在下文中一共展示了ITexture::GetImageFormat方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCreateWebViewDocumentReady
void C_AwesomiumBrowserManager::OnCreateWebViewDocumentReady(WebView* pWebView, std::string id)
{
// The master webview has created a new webview on demand.
DevMsg("AwesomiumBrowserManager: OnCreateWebViewDocumentReady: %s\n", id.c_str());
// TODO: Add global JS API object to the web view.
//C_WebTab* pWebTab = g_pAnarchyManager->GetWebManager()->FindWebTab(id);
C_AwesomiumBrowserInstance* pBrowserInstance = this->FindAwesomiumBrowserInstance(id);
if (pBrowserInstance)
{
pBrowserInstance->SetWebView(pWebView);
pBrowserInstance->SetState(2);
//m_webViews[pBrowserInstance] = pWebView; // obsolete perhaps??
ITexture* pTexture = pBrowserInstance->GetTexture();
if (pTexture && pTexture->GetImageFormat() == IMAGE_FORMAT_BGRA8888)
pWebView->SetTransparent(true);
std::string initialURI = pBrowserInstance->GetInitialURL();
std::string uri = initialURI;
//if (id == "network")
// uri = initialURI;
//else if (id == "images")
// uri = initialURI; // this should never happen, so comment it out to avoid confusion
//uri = "asset://ui/imageLoader.html";
//else if (id == "hud")
// uri = initialURI;
//uri = (initialURI == "") ? "asset://ui/default.html" : initialURI; // this should never happen, so comment it out to avoid confusion
//else
// uri = initialURI;
DevMsg("Loading initial URL: %s\n", uri.c_str());
pWebView->LoadURL(WebURL(WSLit(uri.c_str())));
/*
if (id == "hud" ) // is this too early??
g_pAnarchyManager->IncrementState();
else if (id == "images" && AASTATE_AWESOMIUMBROWSERMANAGERIMAGESWAIT)
g_pAnarchyManager->IncrementState();
*/
}
}