Home
last modified time | relevance | path

Searched refs:m_Resource (Results 1 – 21 of 21) sorted by relevance

/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_OrthoProjectionUpdater.cpp78 m_Resource(resUpdater) in OrthoProjectionUpdater()
85 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~OrthoProjectionUpdater()
87 this->GetAllocator().Free(m_Resource.ptr()); in ~OrthoProjectionUpdater()
95 NW_ASSERT(m_Resource.IsValid()); in Update()
96 NW_ASSERT(m_Resource.GetRect().GetAspectRatio() != 0); in Update()
97 NW_ASSERT(m_Resource.GetRect().GetHeight() != 0); in Update()
99 float halfWidth = m_Resource.GetRect().GetWidth() / 2.0f; in Update()
100 float halfHeight = m_Resource.GetRect().GetHeight() / 2.0f; in Update()
102 float left = m_Resource.GetRect().GetCenter().x - halfWidth; in Update()
103 float right = m_Resource.GetRect().GetCenter().x + halfWidth; in Update()
[all …]
Dgfx_FrustumProjectionUpdater.cpp76 m_Resource(resUpdater) in FrustumProjectionUpdater()
83 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~FrustumProjectionUpdater()
85 this->GetAllocator().Free(m_Resource.ptr()); in ~FrustumProjectionUpdater()
94 NW_ASSERT(m_Resource.IsValid()); in Update()
96 float halfWidth = m_Resource.GetRect().GetWidth() / 2.0f; in Update()
97 float halfHeight = m_Resource.GetRect().GetHeight() / 2.0f; in Update()
99 float left = m_Resource.GetRect().GetCenter().x - halfWidth; in Update()
100 float right = m_Resource.GetRect().GetCenter().x + halfWidth; in Update()
101 float bottom = m_Resource.GetRect().GetCenter().y - halfHeight; in Update()
102 float top = m_Resource.GetRect().GetCenter().y + halfHeight; in Update()
[all …]
Dgfx_AimTargetViewUpdater.cpp75 m_Resource(resUpdater) in AimTargetViewUpdater()
82 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~AimTargetViewUpdater()
84 this->GetAllocator().Free(m_Resource.ptr()); in ~AimTargetViewUpdater()
95 NW_ASSERT(m_Resource.IsValid()); in Update()
96 u32 flags = m_Resource.GetFlags(); in Update()
105 cameraPosition.x - this->m_Resource.GetTargetPosition().x, in Update()
106 cameraPosition.y - this->m_Resource.GetTargetPosition().y, in Update()
107 cameraPosition.z - this->m_Resource.GetTargetPosition().z); in Update()
112 …math::MTX34LookAtRad(viewMatrix, &cameraPosition, this->m_Resource.GetTwist(), &this->m_Resource.G… in Update()
129 math::SinCosRad(&st, &ct, this->m_Resource.GetTwist()); in Update()
[all …]
Dgfx_PerspectiveProjectionUpdater.cpp76 m_Resource(resUpdater) in PerspectiveProjectionUpdater()
83 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~PerspectiveProjectionUpdater()
85 this->GetAllocator().Free(m_Resource.ptr()); in ~PerspectiveProjectionUpdater()
93 NW_ASSERT(m_Resource.IsValid()); in Update()
95 float fovy = this->m_Resource.GetFovy(); in Update()
98 float aspect = this->m_Resource.GetAspectRatio(); in Update()
101 float near = this->m_Resource.GetNear(); in Update()
102 float far = this->m_Resource.GetFar(); in Update()
Dgfx_RotateViewUpdater.cpp73 m_Resource(resUpdater) in RotateViewUpdater()
80 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~RotateViewUpdater()
82 this->GetAllocator().Free(m_Resource.ptr()); in ~RotateViewUpdater()
93 NW_ASSERT(m_Resource.IsValid()); in Update()
94 u32 flags = m_Resource.GetFlags(); in Update()
108 math::MTX34RotXYZRad(&rotateMatrixX, this->m_Resource.GetViewRotate().x, 0.0f, 0.0f); in Update()
109 math::MTX34RotXYZRad(&rotateMatrixY, 0.0f, this->m_Resource.GetViewRotate().y, 0.0f); in Update()
110 math::MTX34RotXYZRad(&rotateMatrixZ, 0.0f, 0.0f, this->m_Resource.GetViewRotate().z); in Update()
130 math::MTX34CameraRotateRad(viewMatrix, &cameraPosition, &this->m_Resource.GetViewRotate()); in Update()
Dgfx_LookAtTargetViewUpdater.cpp72 m_Resource(resUpdater) in LookAtTargetViewUpdater()
79 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~LookAtTargetViewUpdater()
81 this->GetAllocator().Free(m_Resource.ptr()); in ~LookAtTargetViewUpdater()
92 NW_ASSERT(m_Resource.IsValid()); in Update()
94 u32 flags = m_Resource.GetFlags(); in Update()
95 math::VEC3 targetPosition(this->m_Resource.GetTargetPosition()); in Update()
96 math::VEC3 upwardVector(this->m_Resource.GetUpwardVector()); in Update()
Dgfx_SceneBuilder.cpp50 NW_ASSERT(m_Resource.IsValid()); in CreateObject()
53 …SceneObject* root = BuildSceneObject(NULL, NULL, 0, m_Resource, allocator, deviceAllocator, false,… in CreateObject()
66 NW_ASSERT(m_Resource.IsValid()); in CreateTree()
69 …SceneObject* root = BuildSceneObject(NULL, NULL, 0, m_Resource, allocator, deviceAllocator, true, … in CreateTree()
/NW4C-2.0.3/include/nw/gfx/
Dgfx_SceneBuilder.h56 SceneBuilder& Resource(ResSceneObject resource) { m_Resource = resource; return *this; } in Resource()
156 BuildSceneObject(&size, NULL, NULL, m_Resource, NULL, NULL, false, true);
175 BuildSceneObject(NULL, &size, NULL, m_Resource, NULL, NULL, false, true);
194 BuildSceneObject(&size, NULL, NULL, m_Resource, NULL, NULL, true, true);
213 BuildSceneObject(NULL, &size, NULL, m_Resource, NULL, NULL, true, true);
273 ResSceneObject m_Resource; variable
Dgfx_FrustumProjectionUpdater.h106 return this->m_Resource; in GetResource()
112 return this->m_Resource; in GetResource()
141 ResFrustumProjectionUpdater m_Resource; variable
Dgfx_PerspectiveProjectionUpdater.h106 return this->m_Resource; in GetResource()
112 return this->m_Resource; in GetResource()
143 ResPerspectiveProjectionUpdater m_Resource; variable
Dgfx_OrthoProjectionUpdater.h106 return this->m_Resource; in GetResource()
112 return this->m_Resource; in GetResource()
142 ResOrthoProjectionUpdater m_Resource; variable
Dgfx_LookAtTargetViewUpdater.h110 return this->m_Resource; in GetResource()
116 return this->m_Resource; in GetResource()
145 ResLookAtTargetViewUpdater m_Resource; variable
Dgfx_AimTargetViewUpdater.h110 return this->m_Resource; in GetResource()
116 return this->m_Resource; in GetResource()
145 ResAimTargetViewUpdater m_Resource; variable
Dgfx_RotateViewUpdater.h110 return this->m_Resource; in GetResource()
116 return this->m_Resource; in GetResource()
145 ResRotateViewUpdater m_Resource; variable
Dgfx_Skeleton.h220 explicit OriginalPose(ResSkeleton resource) : m_Resource(resource) {} in OriginalPose()
223 int GetBonesCount() const { return m_Resource.GetBonesCount(); } in GetBonesCount()
229 ResBone bone = m_Resource.GetBones(index); in GetTransform()
239 ResBone bone = m_Resource.GetBones(index); in GetTransform()
248 return &m_Resource.GetBones(index).GetTransform(); in GetTransform()
254 return &m_Resource.GetBones(index).GetTransform(); in GetTransform()
258 ResSkeleton m_Resource;
Dgfx_LightSet.h330 m_Resource(resObj), in LightSet()
343 ResLightSet m_Resource;
Dgfx_AmbientLight.h221 m_Resource(resource) in AmbientLight()
270 ResPtr m_Resource; variable
Dgfx_HemiSphereLight.h222 m_Resource(resource) in HemiSphereLight()
270 ResPtr m_Resource; variable
Dgfx_VertexLight.h264 m_Resource(resource) in VertexLight()
313 ResPtr m_Resource; variable
Dgfx_FragmentLight.h303 m_Resource(resource) in FragmentLight()
362 ResPtr m_Resource; variable
Dgfx_Fog.h296 m_Resource(resource), in Fog()
369 ResPtr m_Resource; variable