/*---------------------------------------------------------------------------* Project: NintendoWare File: gfx_ParticleSceneUpdater.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: 31311 $ *---------------------------------------------------------------------------*/ #ifndef NW_GFX_PARTICLESCENEUPDATER_H_ #define NW_GFX_PARTICLESCENEUPDATER_H_ #include #include #include #include namespace nw { namespace gfx { class SceneContext; class ParticleContext; class ParticleSet; //--------------------------------------------------------------------------- //! @brief パーティクルの更新を行うためのクラスです //--------------------------------------------------------------------------- class ParticleSceneUpdater : public GfxObject { private: NW_DISALLOW_COPY_AND_ASSIGN(ParticleSceneUpdater); public: NW_UT_RUNTIME_TYPEINFO; //! シーンノードの MoveArray の定義です。 typedef ut::MoveArray SceneNodeArray; //! ParticleSetの MoveArray の定義です。 typedef ut::MoveArray ParticleSetArray; //---------------------------------------- //! @name 作成 //@{ //! パーティクルシーンアップデータクラスを構築するためのクラスです。 class Builder { public: //! @brief コンストラクタです。 Builder() {} //! @brief シーンアップデータを生成します。 //! //! @param[in] allocator //! //! @return 生成したシーンアップデータを返します。 //! ParticleSceneUpdater* Create(os::IAllocator* allocator); }; //@} //---------------------------------------- //! @name 更新 //@{ //! @brief パーティクルの再生ステップを一括で設定します。 //! //! @param[in] sceneContext シーンコンテキストです。 //! @param[in] stepFrame 設定する再生ステップです。 //! void SetStepFrame( SceneContext* sceneContext, f32 stepFrame); //! @brief シーンコンテキストをビューに基づいて更新します。 //! //! @param[in] sceneContext シーンコンテキストです。 //! @param[in] particleContext パーティクルシーンコンテキストです。 //! @param[in] enableSwapBuffer バッファをスワップするかを指定します。 //! virtual void UpdateNode( SceneContext* sceneContext, ParticleContext* particleContext, bool enableSwapBuffer = true); //! @brief バッファを交換します。 //! @details :private //! @param[in] sceneContext シーンコンテキストです。 //! NW_DEPRECATED_FUNCTION(virtual void SwapBuffer(SceneContext* /*sceneContext*/)) {} //@} protected: //---------------------------------------- //! @name コンストラクタ/デストラクタ //@{ //! コンストラクタです。 ParticleSceneUpdater(os::IAllocator* allocator) : GfxObject(allocator) {} //! デストラクタです。 virtual ~ParticleSceneUpdater() {} //@} }; } // namespace gfx } // namespace nw #endif // NW_GFX_SCENEUPDATER_H_