コード例 #1
0
ファイル: GameObject.cpp プロジェクト: Anters/LevelEditor
 // ----------------------------------------------------------------------------------
 void GameObject::SetParent(GameObject* parent)
 {
     InvalidateBounds(); // mark 'old' ancestors as dirty.
     m_parent = parent;
     InvalidateBounds(); // mark 'new' ancestors as dirty.
     InvalidateWorld();  // mark world as dirty.
 }
コード例 #2
0
ファイル: Locator.cpp プロジェクト: Averroes/LevelEditor
 // ----------------------------------------------------------------------------------
 void Locator::AddResource(ResourceReference* r, int /*index*/)
 {
     m_resource = r;
     m_modelTransforms.clear();
     m_renderables.clear();
     InvalidateBounds();
     InvalidateWorld();        
 }
コード例 #3
0
ファイル: GameObject.cpp プロジェクト: Anters/LevelEditor
 // ----------------------------------------------------------------------------------
 void GameObject::SetTransform(const Matrix& xform)
 {
     m_local = xform;
     InvalidateWorld();
     InvalidateBounds();
 }