Lines Matching refs:gfx

60 typedef nw::ut::FixedSizeArray<nw::gfx::IRenderTarget*, RENDER_TARGET_COUNT> RenderTargetArray;
65 nw::gfx::ParticleContext* s_ParticleContext = NULL;
76 nw::gfx::SceneNode* s_SceneRoot = NULL;
78 nw::gfx::Camera* s_BaseCamera = NULL;
79 nw::gfx::Camera* s_LeftCamera = NULL;
80 nw::gfx::Camera* s_RightCamera = NULL;
90 typedef nw::ut::FixedSizeArray<nw::gfx::SceneEnvironmentSetting*, ENVIRONMENT_SETTINGS_COUNT> Scene…
96 nw::ut::FixedSizeArray<nw::gfx::AnimObject*, MAX_ANIM_OBJECTS> s_AnimObjects;
101 nw::ut::FixedSizeArray<nw::gfx::ResGraphicsFile, ANIMATION_RESOURCES_COUNT> s_ResAnims;
102 nw::ut::FixedSizeArray<nw::gfx::SceneObject*, ANIMATION_TARGETS_COUNT> s_AnimTargets;
104 nw::gfx::BaseAnimEvaluator* s_MainEvaluator = NULL;
121 nw::gfx::ParticleSceneUpdater* s_ParticleSceneUpdater = NULL;
127 typedef nw::ut::FixedSizeArray<nw::gfx::ParticleModel*, MODEL_COUNT> ParticleMdlArray;
133 nw::gfx::SkeletalModel* s_SkeletalModel = NULL;
136 typedef nw::ut::FixedSizeArray<nw::gfx::ParticleEmitter*, EMITTER_COUNT> EmitterArray;
139 nw::gfx::Light* s_Light = NULL;
146 class CallbackConstraint : public nw::gfx::Skeleton::CalculateMatrixSlot
157 : nw::gfx::Skeleton::CalculateMatrixSlot(allocator), in CallbackConstraint()
172 : nw::gfx::Skeleton::CalculateMatrixSlot(allocator), in CallbackConstraint()
183 bool AddConstrainedObject(nw::gfx::TransformNode* constrainedObject) in AddConstrainedObject()
186 nw::gfx::CalculatedTransform::FLAG_IS_WORLDMATRIX_CALCULATION_ENABLED); in AddConstrainedObject()
197 nw::gfx::SkeletalModel* skeletalModel, in SetTargetObject()
201 nw::gfx::Skeleton* skeleton = skeletalModel->GetSkeleton(); in SetTargetObject()
215 virtual void Invoke(nw::gfx::Skeleton* skeleton, int boneIdx) in Invoke()
222 nw::gfx::Skeleton::MatrixPose& pose = skeleton->WorldMatrixPose(); in Invoke()
235 typedef nw::ut::MoveArray<nw::gfx::TransformNode*> TransformNodeArray;
237 nw::gfx::Skeleton* m_Skeleton;
249 nw::gfx::CommandCacheManager::SetAllocator( &s_DeviceAllocator ); in InitializeGraphics()
279 s_ParticleContext = nw::gfx::ParticleContext::Builder() in InitializeGraphics()
282 s_ParticleSceneUpdater = nw::gfx::ParticleSceneUpdater::Builder() in InitializeGraphics()
299 nw::gfx::SafeDestroy(s_LeftCamera); in TerminateGraphics()
301 nw::gfx::SafeDestroy(s_RightCamera); in TerminateGraphics()
303 nw::gfx::SafeDestroy(s_SceneSystem); in TerminateGraphics()
305 nw::gfx::SafeDestroy(s_ParticleSceneUpdater); in TerminateGraphics()
307 nw::gfx::SafeDestroy(s_ParticleContext); in TerminateGraphics()
309 nw::gfx::SafeDestroyAll(s_RenderTargets); in TerminateGraphics()
313 nw::gfx::SafeDestroy(s_RenderSystem); in TerminateGraphics()
326 nw::gfx::SafeDestroy(s_AnimObjects[animIdx]); in TerminateAnim()
340 nw::gfx::SceneContext* sceneContext = s_SceneSystem->GetSceneContext(); in SetStepFrame()
342 nw::gfx::SceneNodeArray::iterator end = sceneContext->GetSceneNodesEnd(); in SetStepFrame()
343 for (nw::gfx::SceneNodeArray::iterator i = sceneContext->GetSceneNodesBegin(); i != end; ++i) in SetStepFrame()
345 nw::gfx::ParticleEmitter* emitter = nw::ut::DynamicCast<nw::gfx::ParticleEmitter*>(*i); in SetStepFrame()
352 nw::gfx::ParticleModel* model = nw::ut::DynamicCast<nw::gfx::ParticleModel*>(*i); in SetStepFrame()
370 nw::gfx::SceneContext* sceneContext = s_SceneSystem->GetSceneContext(); in ResetParticle()
380 (*iter)->ForeachParticleSet(nw::gfx::ParticleSetsClear()); in ResetParticle()
399 …nw::gfx::BaseAnimEvaluator* evaluator = nw::ut::DynamicCast<nw::gfx::BaseAnimEvaluator*>(s_AnimObj… in ResetParticle()
421 nw::gfx::SceneContext* sceneContext = s_SceneSystem->GetSceneContext(); in LoopAnimation()
426 nw::gfx::ParticleModelArray::iterator end = sceneContext->GetParticleModelEnd(); in LoopAnimation()
427 for (nw::gfx::ParticleModelArray::iterator iter = sceneContext->GetParticleModelBegin(); in LoopAnimation()
447 s_SceneRoot = nw::gfx::TransformNode::DynamicBuilder() in BuildRootNodes()
479 …resourceSet->resource.ForeachTexture(nw::gfx::TextureLocationFlagSetter(NN_GX_MEM_VRAMA | GL_NO_CO… in BuildResources()
480 …resourceSet->resource.ForeachIndexStream(nw::gfx::IndexStreamLocationFlagSetter(NN_GX_MEM_VRAMB | … in BuildResources()
481 …resourceSet->resource.ForeachVertexStream(nw::gfx::VertexStreamLocationFlagSetter(NN_GX_MEM_VRAMB … in BuildResources()
483 nw::gfx::Result result = resourceSet->resource.Setup(&s_DeviceAllocator); in BuildResources()
489 nw::ut::MoveArray<nw::gfx::SceneNode*> sceneNodeArray(&s_DeviceAllocator); in BuildResources()
491 nw::gfx::ResModelArray models = resourceSet->resource.GetModels(); in BuildResources()
492 nw::gfx::ResModelArray::iterator modelsEnd = models.end(); in BuildResources()
493 for (nw::gfx::ResModelArray::iterator modelResource = models.begin(); in BuildResources()
496 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources()
505 nw::gfx::SkeletalModel* skeletalModel = nw::ut::DynamicCast<nw::gfx::SkeletalModel*>(node); in BuildResources()
512 nw::gfx::ResLightArray lights = resourceSet->resource.GetLights(); in BuildResources()
513 nw::gfx::ResLightArray::iterator lightsEnd = lights.end(); in BuildResources()
514 for (nw::gfx::ResLightArray::iterator lightResource = lights.begin(); in BuildResources()
517 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources()
526 s_Light = nw::ut::DynamicCast<nw::gfx::Light*>(node); in BuildResources()
529 nw::gfx::ResEmitterArray emitters = resourceSet->resource.GetEmitters(); in BuildResources()
530 for (nw::gfx::ResEmitterArray::iterator emitterResource = emitters.begin(); in BuildResources()
533 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources()
540 s_Emitters.push_back(nw::ut::DynamicCast<nw::gfx::ParticleEmitter*>(node)); in BuildResources()
543 nw::gfx::ResCameraArray cameras = resourceSet->resource.GetCameras(); in BuildResources()
544 nw::gfx::ResCameraArray::iterator camerasEnd = cameras.end(); in BuildResources()
545 for (nw::gfx::ResCameraArray::iterator cameraResource = cameras.begin(); in BuildResources()
548 nw::gfx::SceneNode* node = nw::demo::Utility::CreateSceneNode( in BuildResources()
557 nw::gfx::SceneHelper::ResolveReference(sceneNodeArray); in BuildResources()
559 nw::gfx::ParticleUtil::SetupParticleObject(&sceneNodeArray, s_ParticleContext); in BuildResources()
562 nw::gfx::SceneHelper::ForeachRootNodes( in BuildResources()
565 nw::gfx::AttachNode(s_SceneRoot) in BuildResources()
568 …nw::gfx::ResSceneEnvironmentSettingArray settings = resourceSet->resource.GetSceneEnvironmentSetti… in BuildResources()
569 nw::gfx::ResSceneEnvironmentSettingArray::iterator settingsEnd = settings.end(); in BuildResources()
570 for (nw::gfx::ResSceneEnvironmentSettingArray::iterator settingResource = settings.begin(); in BuildResources()
573 nw::gfx::SceneObject* sceneObject = nw::gfx::SceneBuilder() in BuildResources()
577 nw::gfx::SceneEnvironmentSetting* sceneEnvironmentSetting = in BuildResources()
578 nw::ut::DynamicCast<nw::gfx::SceneEnvironmentSetting*>(sceneObject); in BuildResources()
607 s_MainEvaluator = nw::ut::DynamicCast<nw::gfx::BaseAnimEvaluator*>(s_AnimObjects[0]); in BuildAnimations()
648 …s_Light->Transform().DisableFlags(nw::gfx::CalculatedTransform::FLAG_IS_WORLDMATRIX_CALCULATION_EN… in SetupConstraint()
694 nw::gfx::SceneEnvironment& sceneEnvironment = s_RenderSystem->GetSceneEnvironment(); in InitializeScenes()
709 nw::gfx::SafeDestroyBranch(s_SceneRoot); in TerminateScenes()
732 nw::gfx::Skeleton::MatrixPose& pose = s_SkeletalModel->GetSkeleton()->WorldMatrixPose(); in ConstrainLight()
757 nw::gfx::ResCameraProjectionUpdater resProjectionUpdater = in UpdateScene()
802 nw::gfx::RenderContext* renderContext = s_RenderSystem->GetRenderContext(); in DemoScene()