/*---------------------------------------------------------------------------* Project: NintendoWare File: gfx_IMaterialIdGenerator.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_IMATERIALIDGENERATOR_H_ #define NW_GFX_IMATERIALIDGENERATOR_H_ namespace nw { namespace gfx { class Material; //--------------------------------------------------------------------------- //! @brief マテリアルIDの生成を行うインターフェースです。 //! SceneInitializer からマテリアルごとに Accept がコールされます。 //! また、 SceneInitializer::End で Generate が呼び出されます。 //--------------------------------------------------------------------------- class IMaterialIdGenerator : public GfxObject { private: NW_DISALLOW_COPY_AND_ASSIGN(IMaterialIdGenerator); public: NW_UT_RUNTIME_TYPEINFO; //! @brief マテリアルを受け取ります。 //! SceneInitializer の Visit 経由で呼び出されます。 //! //! @param[in] material マテリアルです。 //! virtual void Accept(Material* material) = 0; //---------------------------------------- //! @name 生成 //@{ //! @brief マテリアルIDを生成します。 //! 通常は SceneInitializer::End で呼び出されます。 virtual void Generate() = 0; //@} protected: //---------------------------------------- //! @name コンストラクタ/デストラクタ //@{ //! コンストラクタです。 IMaterialIdGenerator(os::IAllocator* allocator) : GfxObject(allocator) {} //@} }; } // namespace gfx } // namespace nw #endif // NW_GFX_IMATERIALIDGENERATOR_H_