Home
last modified time | relevance | path

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

/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_OrthoProjectionUpdater.cpp76 m_Resource(resUpdater) in OrthoProjectionUpdater()
83 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~OrthoProjectionUpdater()
85 this->GetAllocator().Free(m_Resource.ptr()); in ~OrthoProjectionUpdater()
93 NW_ASSERT(m_Resource.IsValid()); in Update()
94 NW_ASSERT(m_Resource.GetRect().GetAspectRatio() != 0); in Update()
95 NW_ASSERT(m_Resource.GetRect().GetHeight() != 0); in Update()
97 float halfWidth = m_Resource.GetRect().GetWidth() / 2.0f; in Update()
98 float halfHeight = m_Resource.GetRect().GetHeight() / 2.0f; in Update()
100 float left = m_Resource.GetRect().GetCenter().x - halfWidth; in Update()
101 float right = m_Resource.GetRect().GetCenter().x + halfWidth; in Update()
[all …]
Dgfx_FrustumProjectionUpdater.cpp74 m_Resource(resUpdater) in FrustumProjectionUpdater()
81 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~FrustumProjectionUpdater()
83 this->GetAllocator().Free(m_Resource.ptr()); in ~FrustumProjectionUpdater()
92 NW_ASSERT(m_Resource.IsValid()); in Update()
94 float halfWidth = m_Resource.GetRect().GetWidth() / 2.0f; in Update()
95 float halfHeight = m_Resource.GetRect().GetHeight() / 2.0f; in Update()
97 float left = m_Resource.GetRect().GetCenter().x - halfWidth; in Update()
98 float right = m_Resource.GetRect().GetCenter().x + halfWidth; in Update()
99 float bottom = m_Resource.GetRect().GetCenter().y - halfHeight; in Update()
100 float top = m_Resource.GetRect().GetCenter().y + halfHeight; in Update()
[all …]
Dgfx_AimTargetViewUpdater.cpp73 m_Resource(resUpdater) in AimTargetViewUpdater()
80 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~AimTargetViewUpdater()
82 this->GetAllocator().Free(m_Resource.ptr()); in ~AimTargetViewUpdater()
93 NW_ASSERT(m_Resource.IsValid()); in Update()
94 u32 flags = m_Resource.GetFlags(); in Update()
103 cameraPosition.x - this->m_Resource.GetTargetPosition().x, in Update()
104 cameraPosition.y - this->m_Resource.GetTargetPosition().y, in Update()
105 cameraPosition.z - this->m_Resource.GetTargetPosition().z); in Update()
110 …math::MTX34LookAtRad(viewMatrix, &cameraPosition, this->m_Resource.GetTwist(), &this->m_Resource.G… in Update()
127 math::SinCosRad(&st, &ct, this->m_Resource.GetTwist()); in Update()
[all …]
Dgfx_PerspectiveProjectionUpdater.cpp74 m_Resource(resUpdater) in PerspectiveProjectionUpdater()
81 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~PerspectiveProjectionUpdater()
83 this->GetAllocator().Free(m_Resource.ptr()); in ~PerspectiveProjectionUpdater()
91 NW_ASSERT(m_Resource.IsValid()); in Update()
93 float fovy = this->m_Resource.GetFovy(); in Update()
96 float aspect = this->m_Resource.GetAspectRatio(); in Update()
99 float near = this->m_Resource.GetNear(); in Update()
100 float far = this->m_Resource.GetFar(); in Update()
Dgfx_RotateViewUpdater.cpp71 m_Resource(resUpdater) in RotateViewUpdater()
78 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~RotateViewUpdater()
80 this->GetAllocator().Free(m_Resource.ptr()); in ~RotateViewUpdater()
91 NW_ASSERT(m_Resource.IsValid()); in Update()
92 u32 flags = m_Resource.GetFlags(); in Update()
106 math::MTX34RotXYZRad(&rotateMatrixX, this->m_Resource.GetViewRotate().x, 0.0f, 0.0f); in Update()
107 math::MTX34RotXYZRad(&rotateMatrixY, 0.0f, this->m_Resource.GetViewRotate().y, 0.0f); in Update()
108 math::MTX34RotXYZRad(&rotateMatrixZ, 0.0f, 0.0f, this->m_Resource.GetViewRotate().z); in Update()
128 math::MTX34CameraRotateRad(viewMatrix, &cameraPosition, &this->m_Resource.GetViewRotate()); in Update()
Dgfx_LookAtTargetViewUpdater.cpp70 m_Resource(resUpdater) in LookAtTargetViewUpdater()
77 if (this->IsDynamic() && this->m_Resource.IsValid()) in ~LookAtTargetViewUpdater()
79 this->GetAllocator().Free(m_Resource.ptr()); in ~LookAtTargetViewUpdater()
90 NW_ASSERT(m_Resource.IsValid()); in Update()
92 u32 flags = m_Resource.GetFlags(); in Update()
93 math::VEC3 targetPosition(this->m_Resource.GetTargetPosition()); in Update()
94 math::VEC3 upwardVector(this->m_Resource.GetUpwardVector()); in Update()
Dgfx_SceneBuilder.cpp48 NW_ASSERT(m_Resource.IsValid()); in CreateObject()
51 …SceneObject* root = BuildSceneObject(NULL, NULL, 0, m_Resource, allocator, deviceAllocator, false,… in CreateObject()
64 NW_ASSERT(m_Resource.IsValid()); in CreateTree()
67 …SceneObject* root = BuildSceneObject(NULL, NULL, 0, m_Resource, allocator, deviceAllocator, true, … in CreateTree()
/NW4C-1.3.3/include/nw/gfx/
Dgfx_SceneBuilder.h54 SceneBuilder& Resource(ResSceneObject resource) { m_Resource = resource; return *this; } in Resource()
153 BuildSceneObject(&size, NULL, NULL, m_Resource, NULL, NULL, false, true);
172 BuildSceneObject(NULL, &size, NULL, m_Resource, NULL, NULL, false, true);
191 BuildSceneObject(&size, NULL, NULL, m_Resource, NULL, NULL, true, true);
210 BuildSceneObject(NULL, &size, NULL, m_Resource, NULL, NULL, true, true);
270 ResSceneObject m_Resource; variable
Dgfx_PerspectiveProjectionUpdater.h104 return this->m_Resource; in GetResource()
110 return this->m_Resource; in GetResource()
141 ResPerspectiveProjectionUpdater m_Resource; variable
Dgfx_FrustumProjectionUpdater.h104 return this->m_Resource; in GetResource()
110 return this->m_Resource; in GetResource()
139 ResFrustumProjectionUpdater m_Resource; variable
Dgfx_OrthoProjectionUpdater.h104 return this->m_Resource; in GetResource()
110 return this->m_Resource; in GetResource()
140 ResOrthoProjectionUpdater m_Resource; variable
Dgfx_LookAtTargetViewUpdater.h108 return this->m_Resource; in GetResource()
114 return this->m_Resource; in GetResource()
143 ResLookAtTargetViewUpdater m_Resource; variable
Dgfx_AimTargetViewUpdater.h108 return this->m_Resource; in GetResource()
114 return this->m_Resource; in GetResource()
143 ResAimTargetViewUpdater m_Resource; variable
Dgfx_RotateViewUpdater.h108 return this->m_Resource; in GetResource()
114 return this->m_Resource; in GetResource()
143 ResRotateViewUpdater m_Resource; variable
Dgfx_Skeleton.h218 explicit OriginalPose(ResSkeleton resource) : m_Resource(resource) {} in OriginalPose()
221 int GetBonesCount() const { return m_Resource.GetBonesCount(); } in GetBonesCount()
227 ResBone bone = m_Resource.GetBones(index); in GetTransform()
237 ResBone bone = m_Resource.GetBones(index); in GetTransform()
246 return &m_Resource.GetBones(index).GetTransform(); in GetTransform()
252 return &m_Resource.GetBones(index).GetTransform(); in GetTransform()
256 ResSkeleton m_Resource;
Dgfx_LightSet.h328 m_Resource(resObj), in LightSet()
341 ResLightSet m_Resource;
Dgfx_AmbientLight.h219 m_Resource(resource) in AmbientLight()
268 ResPtr m_Resource; variable
Dgfx_HemiSphereLight.h220 m_Resource(resource) in HemiSphereLight()
268 ResPtr m_Resource; variable
Dgfx_VertexLight.h262 m_Resource(resource) in VertexLight()
311 ResPtr m_Resource; variable
Dgfx_FragmentLight.h263 m_Resource(resource) in FragmentLight()
312 ResPtr m_Resource; variable
Dgfx_Fog.h294 m_Resource(resource), in Fog()
367 ResPtr m_Resource; variable