CrossFramework Library
|
00001 00006 #if defined(XG3D_INCLUDED_RESTEX_HPP) 00007 #else 00008 #define XG3D_INCLUDED_RESTEX_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/Pointer.hpp> 00012 #include <XG3D/BuiltInTypes.hpp> 00013 #include <XG3D/ResTexFormat.hpp> 00014 00015 //------------------------------------------------------------ 00016 namespace XG3D { 00017 class ResTexImpl; 00018 class TexBuffer; 00019 } 00020 00021 //------------------------------------------------------------ 00022 namespace XG3D { 00024 00025 00030 class ResTex 00031 { 00032 public: 00034 00035 00036 ResTex(); 00037 00039 ResTex( const ResTexImpl& aImpl ); 00041 00043 00044 bool isValid()const; 00045 bool equals( const ResTex& aRHS )const; 00046 bool operator==( const ResTex& aRHS )const; 00047 00048 00050 00051 uint index()const; 00052 const char* name()const; 00053 u16 width()const; 00054 u16 height()const; 00055 ResTexFormat format()const; 00056 const byte_t* pixels()const; 00057 const TexBuffer* texBufferPtr()const; 00058 00059 00060 private: 00061 ::XBase::Pointer< const ResTexImpl > mPtr; 00062 //------------------------------------------------------------ 00063 bool checkInvalid()const; 00064 }; 00066 } 00067 //------------------------------------------------------------ 00068 #endif 00069 // EOF