Lines Matching refs:this

248         return ResModel(this->GetResSceneObject().ptr());  in GetResModel()
255 return ResModel(this->GetResSceneObject().ptr()); in GetResModel()
267 if (this->m_MeshBuffers.empty()) in GetResMeshes()
269 ResModel model = this->GetResModel(); in GetResMeshes()
273 return this->m_MeshBuffers; in GetResMeshes()
287 if (this->m_MeshNodeVisibilityBuffers.empty()) in GetResMeshNodeVisibilities()
289 ResModel model = this->GetResModel(); in GetResMeshNodeVisibilities()
293 return ResMeshNodeVisibility( &this->m_MeshNodeVisibilityBuffers[idx] ); in GetResMeshNodeVisibilities()
447 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
453 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
460 return this->m_MaterialActivator.Reset(materialActivator); in SetMaterialActivator()
467 return this->m_MaterialActivator.Reset(materialActivator, false); in SetSharedMaterialActivator()
479 return ut::CheckFlag(this->m_BufferOption, bufferOption); in CheckBufferOption()
485 return this->m_BufferOption; in GetBufferOption()
497 return this->m_ModelViewMatrix; in ModelViewMatrix()
503 return this->m_ModelViewMatrix; in ModelViewMatrix()
509 return this->m_NormalMatrix; in NormalMatrix()
515 return this->m_NormalMatrix; in NormalMatrix()
538 Material* material = this->GetMaterial(mesh.GetMaterialIndex()); in GetRenderLayerId()
574 ResMeshNodeVisibility visibility = this->GetResMeshNodeVisibilities(index); in IsMeshVisible()
651 SafeDestroy(this->m_PreRenderSignal); in ~Model()
652 SafeDestroy(this->m_PostRenderSignal); in ~Model()
656 SafeDestroyAll(this->m_Materials); in ~Model()
659 SafeDestroy(this->m_MaterialAnimGroup); in ~Model()
660 SafeDestroy(this->m_VisibilityAnimGroup); in ~Model()
841 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
842 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
846 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
849 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
857 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
860 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
867 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
871 math::MTX34Mult(&modelView, &viewMatrix, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
872 math::MTX34Copy(&this->NormalMatrix(), &modelView); in UpdateModelViewMatrixAndNormalMatrix()
874 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
879 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
881 math::MTX34Mult(&reScaleMtx, &scaleMtx, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
882 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &reScaleMtx); in UpdateModelViewMatrixAndNormalMatrix()
888 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
889 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
894 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
897 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
899 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
903 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
905 math::MTX34Mult(&this->NormalMatrix(), &scaleMtx, &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
913 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
916 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()