Lines Matching refs:this
250 return ResModel(this->GetResSceneObject().ptr()); in GetResModel()
257 return ResModel(this->GetResSceneObject().ptr()); in GetResModel()
269 if (this->m_MeshBuffers.empty()) in GetResMeshes()
271 ResModel model = this->GetResModel(); in GetResMeshes()
275 return this->m_MeshBuffers; in GetResMeshes()
289 if (this->m_MeshNodeVisibilityBuffers.empty()) in GetResMeshNodeVisibilities()
291 ResModel model = this->GetResModel(); in GetResMeshNodeVisibilities()
295 return ResMeshNodeVisibility( &this->m_MeshNodeVisibilityBuffers[idx] ); in GetResMeshNodeVisibilities()
449 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
455 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
462 return this->m_MaterialActivator.Reset(materialActivator); in SetMaterialActivator()
469 return this->m_MaterialActivator.Reset(materialActivator, false); in SetSharedMaterialActivator()
481 return ut::CheckFlag(this->m_BufferOption, bufferOption); in CheckBufferOption()
487 return this->m_BufferOption; in GetBufferOption()
499 return this->m_ModelViewMatrix; in ModelViewMatrix()
505 return this->m_ModelViewMatrix; in ModelViewMatrix()
511 return this->m_NormalMatrix; in NormalMatrix()
517 return this->m_NormalMatrix; in NormalMatrix()
540 Material* material = this->GetMaterial(mesh.GetMaterialIndex()); in GetRenderLayerId()
576 ResMeshNodeVisibility visibility = this->GetResMeshNodeVisibilities(index); in IsMeshVisible()
653 SafeDestroy(this->m_PreRenderSignal); in ~Model()
654 SafeDestroy(this->m_PostRenderSignal); in ~Model()
658 SafeDestroyAll(this->m_Materials); in ~Model()
661 SafeDestroy(this->m_MaterialAnimGroup); in ~Model()
662 SafeDestroy(this->m_VisibilityAnimGroup); in ~Model()
843 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
844 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
848 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
851 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
859 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
862 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
869 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
873 math::MTX34Mult(&modelView, &viewMatrix, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
874 math::MTX34Copy(&this->NormalMatrix(), &modelView); in UpdateModelViewMatrixAndNormalMatrix()
876 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
881 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
883 math::MTX34Mult(&reScaleMtx, &scaleMtx, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
884 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &reScaleMtx); in UpdateModelViewMatrixAndNormalMatrix()
890 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
891 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
896 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
899 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
901 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
905 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
907 math::MTX34Mult(&this->NormalMatrix(), &scaleMtx, &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
915 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
918 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()