/*---------------------------------------------------------------------------* Project: NintendoWare File: gfx_ParticleMaterialActivator.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_PARTICLEMATERIALACTIVATOR_H_ #define NW_GFX_PARTICLEMATERIALACTIVATOR_H_ #include #include namespace nw { namespace os { class IAllocator; } // namesapce os namespace gfx { class RenderContext; class Material; //--------------------------------------------------------------------------- //! @brief マテリアルを更新するためのクラスです。 //! //! パーティクルの簡易マテリアル設定が行われる場合に呼び出されます。 //! 現状では、レンダーコンテキストに保持されており変更できません。 //--------------------------------------------------------------------------- class ParticleMaterialActivator : public IMaterialActivator { private: NW_DISALLOW_COPY_AND_ASSIGN(ParticleMaterialActivator); public: NW_UT_RUNTIME_TYPEINFO; //--------------------------------------------------------------------------- //! @brief マテリアルアクティベータを生成します。 //! //! @param[in] allocator アロケータです。 //! //! @return 生成したマテリアルアクティベータを返します。 //--------------------------------------------------------------------------- static ParticleMaterialActivator* Create(os::IAllocator* allocator); //--------------------------------------------------------------------------- //! @brief マテリアルを有効化します。 //! //! @param[in] renderContext レンダーコンテキストです。 //! @param[in] material 有効化するマテリアルです。 //--------------------------------------------------------------------------- virtual void Activate(RenderContext* renderContext, const Material* material); private: //! コンストラクタです。 ParticleMaterialActivator(os::IAllocator* allocator); //! デストラクタです。 virtual ~ParticleMaterialActivator(); }; } // namespace gfx } // namespace nw #endif // NW_GFX_PARTICLEMATERIALACTIVATOR_H_