/*---------------------------------------------------------------------------* Project: NintendoWare File: SmSceneCtrl.h Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo and/or its licensed developers and are protected by national and international copyright laws. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. The content herein is highly confidential and should be handled accordingly. $Revision: $ *---------------------------------------------------------------------------*/ #ifndef SM_SCENE_CTRL_H_ #define SM_SCENE_CTRL_H_ #include #include "../include/SmBase.h" //------------------------------------------------------------------------------ // シーン機能をまとめるたクラスです。 class SmSceneCtrl : public SmBase { public: //---------------------------------------- // コンストラクタ SmSceneCtrl( nw::gfx::RenderContext* renderContext ); //---------------------------------------- // デストラクタ ~SmSceneCtrl(); //---------------------------------------- // シーンを初期化します。 void InitializeScene(nw::gfx::SceneNode* sceneRoot); //---------------------------------------- void TraverseScene(nw::gfx::SceneNode* sceneRoot); //---------------------------------------- void SetSceneEnvironmentSetting( nw::gfx::SceneEnvironmentSetting* sceneEnvironmentSetting ); //---------------------------------------- // シーンを更新します。 void UpdateScene(); //---------------------------------------- // カメラの視界に基づいてシーンを更新し、描画キューを構築します。 void SubmitView( nw::gfx::Camera* currentCamera ); #if 0 //---------------------------------------- // 描画環境をセットする void SetEnvironment( s32 cameraIndex ); #endif //---------------------------------------- // 描画を行います。 void Render(); //---------------------------------------- // シーンコンテキストを取得します。 nw::gfx::SceneContext* GetSceneContext() { return m_SceneContext; } //---------------------------------------- // ログを出力します。 void OutputLog(); private: nw::gfx::SceneContext* m_SceneContext; nw::gfx::SceneTraverser* m_SceneTraverser; nw::gfx::SceneUpdater* m_SceneUpdater; nw::gfx::SceneInitializer* m_SceneInitializer; nw::gfx::RenderContext* m_RenderContext; nw::gfx::RenderKeyFactory* m_PriorMaterialRenderKeyFactory; nw::gfx::RenderKeyFactory* m_PriorDepthRenderKeyFactory; nw::gfx::RenderQueue* m_RenderQueue; nw::gfx::MeshRenderer* m_MeshRenderer; }; #endif // SM_SCENE_CTRL_H_