1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: gfx_IMaterialActivator.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Revision: 18106 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NW_GFX_IMATERIALACTIVATOR_H_ 17 #define NW_GFX_IMATERIALACTIVATOR_H_ 18 19 #include <nw/gfx/gfx_GfxObject.h> 20 21 namespace nw 22 { 23 namespace os 24 { 25 class IAllocator; 26 } // namesapce os 27 28 namespace gfx 29 { 30 31 class RenderContext; 32 class Material; 33 34 //--------------------------------------------------------------------------- 35 //! @brief マテリアルを更新するためのクラスです。 36 //--------------------------------------------------------------------------- 37 class IMaterialActivator : public GfxObject 38 { 39 private: 40 NW_DISALLOW_COPY_AND_ASSIGN(IMaterialActivator); 41 42 public: 43 NW_UT_RUNTIME_TYPEINFO; 44 45 //--------------------------------------------------------------------------- 46 //! @brief マテリアルを有効化します。 47 //! 48 //! @param[in] renderContext レンダーコンテキストです。 49 //! @param[in] material 有効化するマテリアルです。 50 //--------------------------------------------------------------------------- 51 virtual void Activate(RenderContext* renderContext, const Material* material) = 0; 52 53 protected: 54 //! コンストラクタです。 IMaterialActivator(os::IAllocator * allocator)55 IMaterialActivator(os::IAllocator* allocator) : GfxObject(allocator) {} 56 57 //! デストラクタです。 58 virtual ~IMaterialActivator() = 0; 59 }; 60 61 } // namespace gfx 62 } // namespace nw 63 64 #endif // NW_GFX_IMATERIALACTIVATOR_H_ 65