CrossFramework Library

XG3D/RuntimeTexContext.hpp

説明を見る。
00001 
00006 #if defined(XG3D_INCLUDED_RUNTIMETEXCONTEXT_HPP)
00007 #else
00008 #define XG3D_INCLUDED_RUNTIMETEXCONTEXT_HPP
00009 
00010 //------------------------------------------------------------
00011 #include <XBase/Enum.hpp>
00012 #include <XBase/NonCopyable.hpp>
00013 #include <XG3D/BuiltInTypes.hpp>
00014 #include <XG3D/ResTexFormat.hpp>
00015 
00016 //------------------------------------------------------------
00017 namespace XG3D {
00019 
00020 
00021     class RuntimeTexContext
00022     {
00023     public:
00025 
00026         static const RuntimeTexContext Create( ResTexFormat aFormat , uint aWidth , uint aHeight );
00028         
00030 
00031         ResTexFormat format()const; 
00032         u16 width()const;  
00033         u16 height()const; 
00034 
00035 
00036     private:
00037         RuntimeTexContext( ResTexFormat , uint aWidth , uint aHeight );
00038         //------------------------------------------------------------
00039         ::XBase::Enum32< ResTexFormat > mFormat;
00040         u16 mWidth; 
00041         u16 mHeight;
00042     };
00044 }
00045 //------------------------------------------------------------
00046 #endif
00047 // EOF
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義