Lines Matching refs:this

238         return ResModel(this->GetResSceneObject().ptr());  in GetResModel()
245 return ResModel(this->GetResSceneObject().ptr()); in GetResModel()
257 if (this->m_MeshBuffers.empty()) in GetResMeshes()
259 ResModel model = this->GetResModel(); in GetResMeshes()
263 return this->m_MeshBuffers; in GetResMeshes()
277 if (this->m_MeshNodeVisibilityBuffers.empty()) in GetResMeshNodeVisibilities()
279 ResModel model = this->GetResModel(); in GetResMeshNodeVisibilities()
283 return ResMeshNodeVisibility( &this->m_MeshNodeVisibilityBuffers[idx] ); in GetResMeshNodeVisibilities()
433 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
439 return this->m_MaterialActivator.Get(); in GetMaterialActivator()
446 return this->m_MaterialActivator.Reset(materialActivator); in SetMaterialActivator()
453 return this->m_MaterialActivator.Reset(materialActivator, false); in SetSharedMaterialActivator()
465 return ut::CheckFlag(this->m_BufferOption, bufferOption); in CheckBufferOption()
471 return this->m_BufferOption; in GetBufferOption()
483 return this->m_ModelViewMatrix; in ModelViewMatrix()
489 return this->m_ModelViewMatrix; in ModelViewMatrix()
495 return this->m_NormalMatrix; in NormalMatrix()
501 return this->m_NormalMatrix; in NormalMatrix()
524 Material* material = this->GetMaterial(mesh.GetMaterialIndex()); in GetRenderLayerId()
560 ResMeshNodeVisibility visibility = this->GetResMeshNodeVisibilities(index); in IsMeshVisible()
637 SafeDestroy(this->m_PreRenderSignal); in ~Model()
638 SafeDestroy(this->m_PostRenderSignal); in ~Model()
642 SafeDestroyAll(this->m_Materials); in ~Model()
645 SafeDestroy(this->m_MaterialAnimGroup); in ~Model()
646 SafeDestroy(this->m_VisibilityAnimGroup); in ~Model()
826 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
827 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
831 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
834 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
842 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
845 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
852 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
856 math::MTX34Mult(&modelView, &viewMatrix, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
857 math::MTX34Copy(&this->NormalMatrix(), &modelView); in UpdateModelViewMatrixAndNormalMatrix()
859 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
864 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
866 math::MTX34Mult(&reScaleMtx, &scaleMtx, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
867 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &reScaleMtx); in UpdateModelViewMatrixAndNormalMatrix()
873 math::MTX34InvTranspose(&worldInvTranspose, &this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
874 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()
879 if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_SCALE_ONE)) in UpdateModelViewMatrixAndNormalMatrix()
882 math::MTX34Copy(&this->NormalMatrix(), &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
884 else if (this->WorldTransform().IsEnabledFlags(CalculatedTransform::FLAG_IS_UNIFORM_SCALE)) in UpdateModelViewMatrixAndNormalMatrix()
888 f32 scale = 1.0f / this->WorldTransform().Scale().x; in UpdateModelViewMatrixAndNormalMatrix()
890 math::MTX34Mult(&this->NormalMatrix(), &scaleMtx, &viewMatrix); in UpdateModelViewMatrixAndNormalMatrix()
898 math::MTX34Inverse(&worldInv, this->WorldMatrix()); in UpdateModelViewMatrixAndNormalMatrix()
901 math::MTX34Mult(&this->NormalMatrix(), &viewMatrix, &worldInvTranspose); in UpdateModelViewMatrixAndNormalMatrix()