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