本文整理汇总了C++中GraphicsScene::ReleaseSceneView方法的典型用法代码示例。如果您正苦于以下问题:C++ GraphicsScene::ReleaseSceneView方法的具体用法?C++ GraphicsScene::ReleaseSceneView怎么用?C++ GraphicsScene::ReleaseSceneView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GraphicsScene
的用法示例。
在下文中一共展示了GraphicsScene::ReleaseSceneView方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UnbindFromWorld
void Viewport::UnbindFromWorld()
{
// Release the old scene view if we have one.
if ( m_World && IsValid(m_SceneViewId) )
{
GraphicsScene* pGraphicsScene = GetGraphicsScene();
pGraphicsScene->ReleaseSceneView( m_SceneViewId );
}
m_World.Release();
m_SceneViewId = Invalid<uint32_t>();
}
示例2: BindToWorld
void Viewport::BindToWorld( World* newWorld )
{
if (newWorld && newWorld != m_World)
{
GraphicsScene* pGraphicsScene;
// Release the old scene view if we have one.
if ( m_World && IsValid(m_SceneViewId) )
{
pGraphicsScene = GetGraphicsScene();
pGraphicsScene->ReleaseSceneView( m_SceneViewId );
}
// Set up the new scene view.
m_World = newWorld;
pGraphicsScene = GetGraphicsScene();
m_SceneViewId = pGraphicsScene->AllocateSceneView();
OnResize();
}
}