CrossFramework Library

XG3D/ResTex.hpp

説明を見る。
00001 
00006 #if defined(XG3D_INCLUDED_RESTEX_HPP)
00007 #else
00008 #define XG3D_INCLUDED_RESTEX_HPP
00009 
00010 //------------------------------------------------------------
00011 #include <XG3D/BuiltInTypes.hpp>
00012 #include <XG3D/ResTexFormat.hpp>
00013 #include <XData/XData.hpp>
00014 
00015 //------------------------------------------------------------
00016 namespace XG3D {
00017     struct BinResTex;
00018 }
00019 
00020 //------------------------------------------------------------
00021 namespace XG3D {
00023 
00024 
00029     class ResTex
00030     {
00031     public:
00033 
00034 
00035         ResTex();
00036 
00042         ResTex( const_ptr_t aBin );
00044 
00046 
00047 
00048         bool isValid()const;
00050 
00052 
00053         u16 width()const;  
00054         u16 height()const; 
00055         ResTexFormat format()const;  
00056         const byte_t* pixels()const; 
00057 
00058 
00059     private:
00060         const_ptr_t mPtr;
00061         //------------------------------------------------------------
00062         bool checkInvalid()const;
00063         const BinResTex& bin()const;
00064         const_ptr_t ref( ::XData::Reference val )const;
00065     };
00067 }
00068 //------------------------------------------------------------
00069 #endif
00070 // EOF
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義