Home
last modified time | relevance | path

Searched refs:resource (Results 1 – 25 of 111) sorted by relevance

12345

/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_SceneBuilder.cpp78 ResSceneObject resource, in BuildSceneObject() argument
87 if (!resource.IsValid()) { return 0; } in BuildSceneObject()
91 switch (resource.GetTypeInfo()) in BuildSceneObject()
106 … SceneNode::GetMemorySizeInternal(pSize, ResStaticCast<ResSceneNode>(resource), description); in BuildSceneObject()
110 …Node::GetDeviceMemorySizeInternal(pDeviceSize, ResStaticCast<ResSceneNode>(resource), description); in BuildSceneObject()
116 parent, resource, description, allocator); in BuildSceneObject()
135 …ransformNode::GetMemorySizeInternal(pSize, ResStaticCast<ResTransformNode>(resource), description); in BuildSceneObject()
139 …::GetDeviceMemorySizeInternal(pDeviceSize, ResStaticCast<ResTransformNode>(resource), description); in BuildSceneObject()
146 resource, in BuildSceneObject()
170 … Model::GetMemorySizeInternal(pSize, ResStaticCast<ResModel>(resource), description); in BuildSceneObject()
[all …]
Dgfx_ParticleAnimationOption.cpp104 const ResParticleFrameLoopAnimationOption resource = in EvaluateAnimationFrame() local
112 if (resource.GetAnimationDuration() == 0 || resource.GetLoopDuration() == 0) in EvaluateAnimationFrame()
119 if (resource.GetRandomOffset()) in EvaluateAnimationFrame()
132 delta += (f32)(random % resource.GetLoopDuration()); in EvaluateAnimationFrame()
134 delta += (s32)(random % resource.GetLoopDuration()); in EvaluateAnimationFrame()
139 delta = nw::math::FMod(delta, (f32)resource.GetLoopDuration()); in EvaluateAnimationFrame()
140 delta /= resource.GetLoopDuration(); in EvaluateAnimationFrame()
142 return delta * resource.GetAnimationDuration(); in EvaluateAnimationFrame()
144 delta.FMod((int)resource.GetLoopDuration()); in EvaluateAnimationFrame()
145 … delta.Interp(ParticleTime((int)resource.GetLoopDuration()), resource.GetAnimationDuration()); in EvaluateAnimationFrame()
Dgfx_Camera.cpp389 ResSceneObject resource, in Create() argument
396 ResCamera resCamera = ResDynamicCast<ResCamera>(resource); in Create()
750 const ResPerspectiveProjectionUpdater resource = in GetPerspective() local
753 NW_ASSERTMSG(resource.IsValid(), "Projection updater isn't perspective"); in GetPerspective()
757 *fovy = resource.GetFovy(); in GetPerspective()
761 *aspectRatio = resource.GetAspectRatio(); in GetPerspective()
765 *nearClip = resource.GetNear(); in GetPerspective()
769 *farClip = resource.GetFar(); in GetPerspective()
782 ResPerspectiveProjectionUpdater resource = in SetPerspective() local
785 NW_ASSERTMSG(resource.IsValid(), "Projection updater isn't perspective"); in SetPerspective()
[all …]
Dgfx_StandardSkeleton.cpp33 ResSkeleton resource, in Create() argument
41 NW_ASSERT(resource.IsValid()); in Create()
45 … Skeleton::TransformPose::TransformArray poseWorldTransforms(resource.GetBonesCount(), allocator); in Create()
46 Skeleton::MatrixPose::MatrixArray poseWorldMatrices(resource.GetBonesCount(), allocator); in Create()
47 Skeleton::MatrixPose::MatrixArray skiningMatrices(resource.GetBonesCount(), allocator); in Create()
49 for (int i = 0; i < resource.GetBonesCount(); ++i) in Create()
58 resource, in Create()
Dgfx_LightSet.cpp57 ResLightSet resource, in Create() argument
62 NW_ASSERT(resource.IsValid()); in Create()
68 description.maxVertexLights = resource.GetLightsCount(); in Create()
72 resource, in Create()
Dgfx_SceneEnvironmentSetting.cpp33 ResSceneObject resource, in Create() argument
40 ResSceneEnvironmentSetting resSetting = ResDynamicCast<ResSceneEnvironmentSetting>(resource); in Create()
230 ResSceneEnvironmentSetting resource, in GetMemorySizeInternal() argument
243 size += sizeof(LightSetBinder) * resource.GetLightSetsCount(); in GetMemorySizeInternal()
245 ResLightSetArray::iterator lightSetEnd = resource.GetLightSets().end(); in GetMemorySizeInternal()
247 for (ResLightSetArray::iterator iter = resource.GetLightSets().begin(); in GetMemorySizeInternal()
254 size += sizeof(CameraBinder) * resource.GetCamerasCount(); in GetMemorySizeInternal()
255 size += sizeof(FogBinder) * resource.GetFogsCount(); in GetMemorySizeInternal()
Dgfx_ParticleEmitter.cpp87 ResSceneObject resource, in Create() argument
94 ResParticleEmitter resNode = ResDynamicCast<ResParticleEmitter>(resource); in Create()
297 ResParticleEmitterParameter resource = this->GetResParticleEmitterParameterCopy(false); in GetEmissionCount()
298 if (!resource.IsValid()) in GetEmissionCount()
303 f32 cookedTime = time - resource.GetEmissionStart() - 1; in GetEmissionCount()
310 if (!resource.GetEmissionSpanInfinity() && cookedTime >= resource.GetEmissionSpan()) in GetEmissionCount()
317 f32 c = resource.GetEmissionRatio(); in GetEmissionCount()
318 c *= 1.0f + resource.GetEmissionRatioRandom() * this->m_ParticleRandom.NextFloatSignedOne(); in GetEmissionCount()
326 int t = resource.GetEmissionInterval(); in GetEmissionCount()
327 …t = (int)(t * (1.0f + resource.GetEmissionIntervalRandom() * this->m_ParticleRandom.NextFloatSigne… in GetEmissionCount()
[all …]
/NW4C-1.3.3/include/nw/gfx/
Dgfx_StandardSkeleton.h53 ResSkeleton resource,
67 ResSkeleton resource,
73 GetMemorySizeInternal(&size, resource, maxCallbacks);
81 ResSkeleton resource, in GetMemorySizeInternal() argument
89 …size.Add(sizeof(Skeleton::TransformPose::Transform) * resource.GetBonesCount(), Skeleton::Transfor… in GetMemorySizeInternal()
90 …size.Add(sizeof(math::MTX34) * resource.GetBonesCount(), Skeleton::TransformPose::TransformArray::… in GetMemorySizeInternal()
91 …size.Add(sizeof(math::MTX34) * resource.GetBonesCount(), Skeleton::TransformPose::TransformArray::… in GetMemorySizeInternal()
93 size += sizeof(Skeleton::TransformPose::Transform) * resource.GetBonesCount(); in GetMemorySizeInternal()
94 size += sizeof(math::MTX34) * resource.GetBonesCount(); in GetMemorySizeInternal()
95 size += sizeof(math::MTX34) * resource.GetBonesCount(); in GetMemorySizeInternal()
[all …]
Dgfx_ParticleModel.h108 ResSceneObject resource,
119 ResParticleModel resource,
125 GetMemorySizeInternal(&size, resource, modelDescription);
133 ResParticleModel resource,
141 ResParticleModel resource,
147 GetDeviceMemorySizeInternal(&size, resource, modelDescription);
155 ResParticleModel resource,
339 ResParticleModel resource,
349 ResTransformNode resource, in ParticleModel() argument
353 resource, in ParticleModel()
Dgfx_AmbientLight.h119 ResSceneObject resource,
129 ResAmbientLight resource,
136 GetMemorySizeInternal(&size, resource, description);
144 ResAmbientLight resource,
213 ResPtr resource, in AmbientLight() argument
217 ResAmbientLight(resource.Get()), in AmbientLight()
219 m_Resource(resource) in AmbientLight()
Dgfx_HemiSphereLight.h120 ResSceneObject resource,
130 ResHemiSphereLight resource,
137 GetMemorySizeInternal(&size, resource, description);
145 ResHemiSphereLight resource,
214 ResPtr resource, in HemiSphereLight() argument
218 ResHemiSphereLight(resource.Get()), in HemiSphereLight()
220 m_Resource(resource) in HemiSphereLight()
Dgfx_ParticleEmitter.h66 ResSceneObject resource,
76 ResParticleEmitter resource,
82 GetMemorySizeInternal(&size, resource, description);
90 ResParticleEmitter resource,
273 … const ResParticleEmitterParameter resource = this->GetResParticleEmitterParameterCopy(false); in IsAlive() local
274 if (!resource.IsValid()) in IsAlive()
279 if (resource.GetEmissionRatio() == 0) in IsAlive()
284 if (resource.GetEmissionSpanInfinity()) in IsAlive()
290 f32 cookedTime = time - resource.GetEmissionStart() - 1; in IsAlive()
291 if (cookedTime >= resource.GetEmissionSpan()) in IsAlive()
Dgfx_VertexLight.h153 ResSceneObject resource,
163 ResVertexLight resource,
170 GetMemorySizeInternal(&size, resource, description);
178 ResVertexLight resource,
256 ResPtr resource, in VertexLight() argument
260 ResVertexLight(resource.Get()), in VertexLight()
262 m_Resource(resource) in VertexLight()
Dgfx_FragmentLight.h153 ResSceneObject resource,
163 ResFragmentLight resource,
170 GetMemorySizeInternal(&size, resource, description);
178 ResFragmentLight resource,
257 ResPtr resource, in FragmentLight() argument
261 ResFragmentLight(resource.Get()), in FragmentLight()
263 m_Resource(resource) in FragmentLight()
Dgfx_ParticleSet.h64 const ResParticleInitializerData *resource; //!< リソースへのポインタです。 member
76 const ResParticleUpdaterData *resource; //!< リソースへのポインタです。 member
122 ResSceneObject resource,
134 ResParticleSet resource,
140 GetMemorySizeInternal(&size, resource, description);
148 ResParticleSet resource,
156 ResParticleSet resource,
161 GetDeviceMemorySizeInternal(&size, resource);
169 ResParticleSet resource);
Dgfx_Fog.h142 ResSceneObject resource,
152 ResFog resource,
159 GetMemorySizeInternal(&size, resource, description);
167 ResFog resource,
288 ResPtr resource, in Fog() argument
292 ResFog(resource.Get()), in Fog()
294 m_Resource(resource), in Fog()
Dgfx_ParticleCollection.h77 ResParticleCollection resource,
87 ResParticleCollection resource,
92 GetMemorySizeInternal(&size, resource);
100 ResParticleCollection resource);
107 ResParticleCollection resource,
112 GetDeviceMemorySizeInternal(&size, resource);
120 ResParticleCollection resource);
Dgfx_SceneBuilder.h54 SceneBuilder& Resource(ResSceneObject resource) { m_Resource = resource; return *this; } in Resource() argument
240 ResSceneObject resource,
263 ResSceneObject resource,
Dgfx_SceneEnvironmentSetting.h103 ResSceneObject resource,
113 ResSceneEnvironmentSetting resource,
120 GetMemorySizeInternal(&size, resource, description);
128 ResSceneEnvironmentSetting resource,
/NW4C-1.3.3/demos/Nw4cDemo/sources/
DGfxCtrl.cpp44 resourceSet->resource = nw::gfx::ResGraphicsFile(&(resourceSet->buffer.front())); in LoadResources()
49 …resourceSet->resource.ForeachTexture(nw::gfx::TextureLocationFlagSetter(vramType | GL_NO_COPY_FCRA… in LoadResources()
50 …resourceSet->resource.ForeachIndexStream(nw::gfx::IndexStreamLocationFlagSetter(vramType | GL_NO_C… in LoadResources()
51 …resourceSet->resource.ForeachVertexStream(nw::gfx::VertexStreamLocationFlagSetter(vramType | GL_NO… in LoadResources()
55 nw::gfx::Result result = resourceSet->resource.Setup(allocator); in LoadResources()
206 nw::gfx::ResModelArray models = resSet.resource.GetModels(); in CreateModel()
247 uint resAnimNum = resSet.resource.GetSkeletalAnimsCount(); in CreateModel()
251 nw::anim::ResAnim resAnim = resSet.resource.GetSkeletalAnims(i); in CreateModel()
277 int materialAnimCount = resSet.resource.GetMaterialAnimsCount(); in CreateModel()
280 nw::anim::ResAnim resAnim = resSet.resource.GetMaterialAnims(0); in CreateModel()
[all …]
/NW4C-1.3.3/sources/libraries/demo/
Ddemo_Particle.cpp113 ParticleEffect::Setup(gfx::ResGraphicsFile resource, bool useParticleMaterial) in Setup() argument
116resource.ForeachTexture(nw::gfx::TextureLocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRAM_DMP)… in Setup()
121 resource.ForeachModelMaterial(nw::gfx::ParticleMaterialFlagSetter()); in Setup()
127 nw::gfx::Result result = resource.Setup(m_DeviceAllocator); in Setup()
134 result = resource.Setup(m_DeviceAllocator, m_ShaderResource->resource); in Setup()
146 ParticleEffect::Register(gfx::ResGraphicsFile resource, const char** nodeNames) in Register() argument
148 nw::gfx::ResModelArray models = resource.GetModels(); in Register()
173 nw::gfx::ResEmitterArray emitters = resource.GetEmitters(); in Register()
201 ParticleEffect::Register(gfx::ResGraphicsFile resource) in Register() argument
203 nw::gfx::ResModelArray models = resource.GetModels(); in Register()
[all …]
/NW4C-1.3.3/demos/gfx/ResourceDemo/sources/
DResourceDemo.cpp170 s_ShaderResource->resource = nw::gfx::ResGraphicsFile(&(s_ShaderResource->buffer.front())); in InitializeGraphics()
258 resourceSet.resource = nw::gfx::ResGraphicsFile(&(resourceSet.buffer.front())); in InitializeScenes()
270 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in InitializeScenes()
271 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in InitializeScenes()
272 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in InitializeScenes()
274 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in InitializeScenes()
280 … result = resourceSet->resource.Setup(&s_DeviceAllocator, s_ShaderResource->resource); in InitializeScenes()
286 …result = resourceSet->resource.Setup(&s_DeviceAllocator, s_LutResources[resourceData.lutIndex].res… in InitializeScenes()
295 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in InitializeScenes()
318 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in InitializeScenes()
[all …]
/NW4C-1.3.3/demos/gfx/DynamicMaterialDemo/sources/
DDynamicMaterialDemo.cpp288 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in BuildResources()
289 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in BuildResources()
290 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in BuildResources()
292 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
298 result = resourceSet->resource.Setup(&s_DeviceAllocator, s_LutResource.resource); in BuildResources()
309 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
374 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
397 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()
423 s_LutResource.resource = nw::gfx::ResGraphicsFile(&(s_LutResource.buffer.front())); in InitializeScenes()
424 s_LutResource.resource.Setup(&s_DeviceAllocator); in InitializeScenes()
[all …]
/NW4C-1.3.3/demos/gfx/SimpleDemo/sources/
DSimpleDemo.cpp175 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in BuildResources()
176 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in BuildResources()
177 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in BuildResources()
188 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
197 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
212 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
239 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()
/NW4C-1.3.3/demos/gfx/PartialAnimationDemo/sources/
DPartialAnimationDemo.cpp179 if (resourceSet->resource.GetSkeletalAnimsCount() == 0) in CreateTransformAnimEvaluator()
183 nw::anim::ResAnim resAnim = resourceSet->resource.GetSkeletalAnims(0); in CreateTransformAnimEvaluator()
320 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in BuildResources()
321 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in BuildResources()
322 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in BuildResources()
324 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
332 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
350 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
373 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()

12345