Home
last modified time | relevance | path

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

12345

/NW4C-2.0.3/sources/libraries/gfx/
Dgfx_SceneBuilder.cpp80 ResSceneObject resource, in BuildSceneObject() argument
89 if (!resource.IsValid()) { return 0; } in BuildSceneObject()
93 switch (resource.GetTypeInfo()) in BuildSceneObject()
108 … SceneNode::GetMemorySizeInternal(pSize, ResStaticCast<ResSceneNode>(resource), description); in BuildSceneObject()
112 …Node::GetDeviceMemorySizeInternal(pDeviceSize, ResStaticCast<ResSceneNode>(resource), description); in BuildSceneObject()
118 parent, resource, description, allocator); in BuildSceneObject()
137 …ransformNode::GetMemorySizeInternal(pSize, ResStaticCast<ResTransformNode>(resource), description); in BuildSceneObject()
141 …::GetDeviceMemorySizeInternal(pDeviceSize, ResStaticCast<ResTransformNode>(resource), description); in BuildSceneObject()
148 resource, in BuildSceneObject()
172 … Model::GetMemorySizeInternal(pSize, ResStaticCast<ResModel>(resource), description); in BuildSceneObject()
[all …]
Dgfx_ParticleAnimationOption.cpp106 const ResParticleFrameLoopAnimationOption resource = in EvaluateAnimationFrame() local
114 if (resource.GetAnimationDuration() == 0 || resource.GetLoopDuration() == 0) in EvaluateAnimationFrame()
121 if (resource.GetRandomOffset()) in EvaluateAnimationFrame()
134 delta += (f32)(random % resource.GetLoopDuration()); in EvaluateAnimationFrame()
136 delta += (s32)(random % resource.GetLoopDuration()); in EvaluateAnimationFrame()
141 delta = nw::math::FMod(delta, (f32)resource.GetLoopDuration()); in EvaluateAnimationFrame()
142 delta /= resource.GetLoopDuration(); in EvaluateAnimationFrame()
144 return delta * resource.GetAnimationDuration(); in EvaluateAnimationFrame()
146 delta.FMod((int)resource.GetLoopDuration()); in EvaluateAnimationFrame()
147 … delta.Interp(ParticleTime((int)resource.GetLoopDuration()), resource.GetAnimationDuration()); in EvaluateAnimationFrame()
Dgfx_Camera.cpp392 ResSceneObject resource, in Create() argument
399 ResCamera resCamera = ResDynamicCast<ResCamera>(resource); in Create()
753 const ResPerspectiveProjectionUpdater resource = in GetPerspective() local
756 NW_ASSERTMSG(resource.IsValid(), "Projection updater isn't perspective"); in GetPerspective()
760 *fovy = resource.GetFovy(); in GetPerspective()
764 *aspectRatio = resource.GetAspectRatio(); in GetPerspective()
768 *nearClip = resource.GetNear(); in GetPerspective()
772 *farClip = resource.GetFar(); in GetPerspective()
785 ResPerspectiveProjectionUpdater resource = in SetPerspective() local
788 NW_ASSERTMSG(resource.IsValid(), "Projection updater isn't perspective"); in SetPerspective()
[all …]
Dgfx_StandardSkeleton.cpp35 ResSkeleton resource, in Create() argument
43 NW_ASSERT(resource.IsValid()); in Create()
47 … Skeleton::TransformPose::TransformArray poseWorldTransforms(resource.GetBonesCount(), allocator); in Create()
48 Skeleton::MatrixPose::MatrixArray poseWorldMatrices(resource.GetBonesCount(), allocator); in Create()
49 Skeleton::MatrixPose::MatrixArray skiningMatrices(resource.GetBonesCount(), allocator); in Create()
51 for (int i = 0; i < resource.GetBonesCount(); ++i) in Create()
60 resource, in Create()
Dgfx_LightSet.cpp59 ResLightSet resource, in Create() argument
64 NW_ASSERT(resource.IsValid()); in Create()
70 description.maxVertexLights = resource.GetLightsCount(); in Create()
74 resource, in Create()
Dgfx_FragmentLight.cpp45 ResPtr resource( in Create() local
53 resource, in Create()
96 ResFragmentLight resource, in GetMemorySizeForCreateClone() argument
107 if (resource.GetAngleSampler().IsValid()) in GetMemorySizeForCreateClone()
112 GetMemorySizeInternal(&size, resource, description); in GetMemorySizeForCreateClone()
121 ResSceneObject resource, in Create() argument
128 ResFragmentLight resNode = ResDynamicCast<ResFragmentLight>(resource); in Create()
157 ResFragmentLight resource, in CreateClone() argument
165 CloneResFragmentLight(resource, allocator), in CreateClone()
282 FragmentLight::CloneResFragmentLight(ResFragmentLight resource, os::IAllocator* allocator) in CloneResFragmentLight() argument
[all …]
Dgfx_SceneEnvironmentSetting.cpp35 ResSceneObject resource, in Create() argument
42 ResSceneEnvironmentSetting resSetting = ResDynamicCast<ResSceneEnvironmentSetting>(resource); in Create()
232 ResSceneEnvironmentSetting resource, in GetMemorySizeInternal() argument
245 size += sizeof(LightSetBinder) * resource.GetLightSetsCount(); in GetMemorySizeInternal()
247 ResLightSetArray::iterator lightSetEnd = resource.GetLightSets().end(); in GetMemorySizeInternal()
249 for (ResLightSetArray::iterator iter = resource.GetLightSets().begin(); in GetMemorySizeInternal()
256 size += sizeof(CameraBinder) * resource.GetCamerasCount(); in GetMemorySizeInternal()
257 size += sizeof(FogBinder) * resource.GetFogsCount(); in GetMemorySizeInternal()
Dgfx_ParticleEmitter.cpp89 ResSceneObject resource, in Create() argument
96 ResParticleEmitter resNode = ResDynamicCast<ResParticleEmitter>(resource); in Create()
299 ResParticleEmitterParameter resource = this->GetResParticleEmitterParameterCopy(false); in GetEmissionCount()
300 if (!resource.IsValid()) in GetEmissionCount()
305 f32 cookedTime = time - resource.GetEmissionStart() - 1; in GetEmissionCount()
312 if (!resource.GetEmissionSpanInfinity() && cookedTime >= resource.GetEmissionSpan()) in GetEmissionCount()
319 f32 c = resource.GetEmissionRatio(); in GetEmissionCount()
320 c *= 1.0f + resource.GetEmissionRatioRandom() * this->m_ParticleRandom.NextFloatSignedOne(); in GetEmissionCount()
328 int t = resource.GetEmissionInterval(); in GetEmissionCount()
329 …t = (int)(t * (1.0f + resource.GetEmissionIntervalRandom() * this->m_ParticleRandom.NextFloatSigne… in GetEmissionCount()
[all …]
/NW4C-2.0.3/include/nw/gfx/
Dgfx_StandardSkeleton.h55 ResSkeleton resource,
69 ResSkeleton resource,
75 GetMemorySizeInternal(&size, resource, maxCallbacks);
83 ResSkeleton resource, in GetMemorySizeInternal() argument
91 …size.Add(sizeof(Skeleton::TransformPose::Transform) * resource.GetBonesCount(), Skeleton::Transfor… in GetMemorySizeInternal()
92 …size.Add(sizeof(math::MTX34) * resource.GetBonesCount(), Skeleton::TransformPose::TransformArray::… in GetMemorySizeInternal()
93 …size.Add(sizeof(math::MTX34) * resource.GetBonesCount(), Skeleton::TransformPose::TransformArray::… in GetMemorySizeInternal()
95 size += sizeof(Skeleton::TransformPose::Transform) * resource.GetBonesCount(); in GetMemorySizeInternal()
96 size += sizeof(math::MTX34) * resource.GetBonesCount(); in GetMemorySizeInternal()
97 size += sizeof(math::MTX34) * resource.GetBonesCount(); in GetMemorySizeInternal()
[all …]
Dgfx_FragmentLight.h156 ResSceneObject resource,
166 ResFragmentLight resource,
173 GetMemorySizeInternal(&size, resource, description);
197 ResFragmentLight resource,
207 ResFragmentLight resource,
215 ResFragmentLight resource,
297 ResPtr resource, in FragmentLight() argument
301 ResFragmentLight(resource.Get()), in FragmentLight()
303 m_Resource(resource) in FragmentLight()
345 …static ResFragmentLightData* CloneResFragmentLight(ResFragmentLight resource, os::IAllocator* a…
Dgfx_ParticleModel.h121 ResSceneObject resource,
132 ResParticleModel resource,
138 GetMemorySizeInternal(&size, resource, modelDescription);
146 ResParticleModel resource,
154 ResParticleModel resource,
160 GetDeviceMemorySizeInternal(&size, resource, modelDescription);
168 ResParticleModel resource,
368 ResParticleModel resource,
378 ResTransformNode resource, in ParticleModel() argument
382 resource, in ParticleModel()
Dgfx_AmbientLight.h121 ResSceneObject resource,
131 ResAmbientLight resource,
138 GetMemorySizeInternal(&size, resource, description);
146 ResAmbientLight resource,
215 ResPtr resource, in AmbientLight() argument
219 ResAmbientLight(resource.Get()), in AmbientLight()
221 m_Resource(resource) in AmbientLight()
Dgfx_HemiSphereLight.h122 ResSceneObject resource,
132 ResHemiSphereLight resource,
139 GetMemorySizeInternal(&size, resource, description);
147 ResHemiSphereLight resource,
216 ResPtr resource, in HemiSphereLight() argument
220 ResHemiSphereLight(resource.Get()), in HemiSphereLight()
222 m_Resource(resource) in HemiSphereLight()
Dgfx_ParticleEmitter.h68 ResSceneObject resource,
78 ResParticleEmitter resource,
84 GetMemorySizeInternal(&size, resource, description);
92 ResParticleEmitter resource,
284 … const ResParticleEmitterParameter resource = this->GetResParticleEmitterParameterCopy(false); in IsAlive() local
285 if (!resource.IsValid()) in IsAlive()
290 if (resource.GetEmissionRatio() == 0) in IsAlive()
295 if (resource.GetEmissionSpanInfinity()) in IsAlive()
301 f32 cookedTime = time - resource.GetEmissionStart() - 1; in IsAlive()
302 if (cookedTime >= resource.GetEmissionSpan()) in IsAlive()
Dgfx_VertexLight.h155 ResSceneObject resource,
165 ResVertexLight resource,
172 GetMemorySizeInternal(&size, resource, description);
180 ResVertexLight resource,
258 ResPtr resource, in VertexLight() argument
262 ResVertexLight(resource.Get()), in VertexLight()
264 m_Resource(resource) in VertexLight()
Dgfx_ParticleSet.h66 const ResParticleInitializerData *resource; //!< リソースへのポインタです。 member
78 const ResParticleUpdaterData *resource; //!< リソースへのポインタです。 member
126 ResSceneObject resource,
138 ResParticleSet resource,
144 GetMemorySizeInternal(&size, resource, description);
152 ResParticleSet resource,
160 ResParticleSet resource,
165 GetDeviceMemorySizeInternal(&size, resource);
173 ResParticleSet resource);
Dgfx_Fog.h144 ResSceneObject resource,
154 ResFog resource,
161 GetMemorySizeInternal(&size, resource, description);
169 ResFog resource,
290 ResPtr resource, in Fog() argument
294 ResFog(resource.Get()), in Fog()
296 m_Resource(resource), in Fog()
Dgfx_ParticleCollection.h79 ResParticleCollection resource,
89 ResParticleCollection resource,
94 GetMemorySizeInternal(&size, resource);
102 ResParticleCollection resource);
109 ResParticleCollection resource,
114 GetDeviceMemorySizeInternal(&size, resource);
122 ResParticleCollection resource);
Dgfx_SceneBuilder.h56 SceneBuilder& Resource(ResSceneObject resource) { m_Resource = resource; return *this; } in Resource() argument
243 ResSceneObject resource,
266 ResSceneObject resource,
Dgfx_SceneEnvironmentSetting.h105 ResSceneObject resource,
115 ResSceneEnvironmentSetting resource,
122 GetMemorySizeInternal(&size, resource, description);
130 ResSceneEnvironmentSetting resource,
/NW4C-2.0.3/demos/Nw4cDemo/sources/
DGfxCtrl.cpp46 resourceSet->resource = nw::gfx::ResGraphicsFile(&(resourceSet->buffer.front())); in LoadResources()
51 …resourceSet->resource.ForeachTexture(nw::gfx::TextureLocationFlagSetter(vramType | GL_NO_COPY_FCRA… in LoadResources()
52 …resourceSet->resource.ForeachIndexStream(nw::gfx::IndexStreamLocationFlagSetter(vramType | GL_NO_C… in LoadResources()
53 …resourceSet->resource.ForeachVertexStream(nw::gfx::VertexStreamLocationFlagSetter(vramType | GL_NO… in LoadResources()
57 nw::gfx::Result result = resourceSet->resource.Setup(allocator); in LoadResources()
208 nw::gfx::ResModelArray models = resSet.resource.GetModels(); in CreateModel()
249 uint resAnimNum = resSet.resource.GetSkeletalAnimsCount(); in CreateModel()
253 nw::anim::ResAnim resAnim = resSet.resource.GetSkeletalAnims(i); in CreateModel()
279 int materialAnimCount = resSet.resource.GetMaterialAnimsCount(); in CreateModel()
282 nw::anim::ResAnim resAnim = resSet.resource.GetMaterialAnims(0); in CreateModel()
[all …]
/NW4C-2.0.3/sources/libraries/demo/
Ddemo_Particle.cpp115 ParticleEffect::Setup(gfx::ResGraphicsFile resource, bool useParticleMaterial) in Setup() argument
118resource.ForeachTexture(nw::gfx::TextureLocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRAM_DMP)… in Setup()
123 resource.ForeachModelMaterial(nw::gfx::ParticleMaterialFlagSetter()); in Setup()
129 nw::gfx::Result result = resource.Setup(m_DeviceAllocator); in Setup()
136 result = resource.Setup(m_DeviceAllocator, m_ShaderResource->resource); in Setup()
148 ParticleEffect::Register(gfx::ResGraphicsFile resource, const char** nodeNames) in Register() argument
150 nw::gfx::ResModelArray models = resource.GetModels(); in Register()
175 nw::gfx::ResEmitterArray emitters = resource.GetEmitters(); in Register()
203 ParticleEffect::Register(gfx::ResGraphicsFile resource) in Register() argument
205 nw::gfx::ResModelArray models = resource.GetModels(); in Register()
[all …]
/NW4C-2.0.3/demos/gfx/ResourceDemo/sources/
DResourceDemo.cpp172 s_ShaderResource->resource = nw::gfx::ResGraphicsFile(&(s_ShaderResource->buffer.front())); in InitializeGraphics()
260 resourceSet.resource = nw::gfx::ResGraphicsFile(&(resourceSet.buffer.front())); in InitializeScenes()
272 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in InitializeScenes()
273 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in InitializeScenes()
274 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in InitializeScenes()
276 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in InitializeScenes()
282 … result = resourceSet->resource.Setup(&s_DeviceAllocator, s_ShaderResource->resource); in InitializeScenes()
288 …result = resourceSet->resource.Setup(&s_DeviceAllocator, s_LutResources[resourceData.lutIndex].res… in InitializeScenes()
297 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in InitializeScenes()
320 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in InitializeScenes()
[all …]
/NW4C-2.0.3/demos/gfx/DynamicMaterialDemo/sources/
DDynamicMaterialDemo.cpp290 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in BuildResources()
291 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in BuildResources()
292 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in BuildResources()
294 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
300 result = resourceSet->resource.Setup(&s_DeviceAllocator, s_LutResource.resource); in BuildResources()
311 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
376 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
399 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()
425 s_LutResource.resource = nw::gfx::ResGraphicsFile(&(s_LutResource.buffer.front())); in InitializeScenes()
426 s_LutResource.resource.Setup(&s_DeviceAllocator); in InitializeScenes()
[all …]
/NW4C-2.0.3/demos/gfx/SimpleDemo/sources/
DSimpleDemo.cpp177 …resourceSet->resource.ForeachTexture(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_COPY_FCRA… in BuildResources()
178 …resourceSet->resource.ForeachIndexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY_… in BuildResources()
179 …resourceSet->resource.ForeachVertexStream(nw::gfx::LocationFlagSetter(NN_GX_MEM_VRAMB | GL_NO_COPY… in BuildResources()
190 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
199 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
214 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
241 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()

12345