36class ResTex :
public ResCommon<ResTexData> {
38 static const ulong SIGNATURE =
'TEX0';
39 static const int REVISION = 1;
42 NW4R_G3D_RESOURCE_FUNC_DEF(
ResTex);
46 ulong GetRevision()
const {
47 return ref().revision;
50 bool CheckRevision()
const {
51 return GetRevision() == REVISION;
54 bool GetTexObjParam(
void** ppTexData, u16* pWidth, u16* pHeight,
55 GXTexFmt* pFormat, f32* pMinLod, f32* pMaxLod,
56 GXBool* pMipMap)
const;
58 bool GetTexObjCIParam(
void** ppTexData, u16* pWidth, u16* pHeight,
59 GXCITexFmt* pFormatCI, f32* pMinLod, f32* pMaxLod,
60 GXBool* pMipMap)
const;
62 bool IsCIFmt()
const {
63 return ref().flag & ResTexData::FLAG_CIFMT;
66 u16 GetWidth()
const {
69 u16 GetHeight()
const {
73 const void* GetTexData()
const {
74 return ofs_to_ptr<void>(ref().toTexData);