prime/include/Kyoto/Graphics/CTexture.hpp

41 lines
674 B
C++
Raw Normal View History

#ifndef _CTEXTURE
#define _CTEXTURE
#include "types.h"
2022-08-30 22:48:44 +00:00
#include <dolphin/gx/GXEnum.h>
class CInputStream;
class CTexture {
public:
enum EClampMode {
2022-10-17 02:33:08 +00:00
kCM_Clamp,
kCM_Repeat,
kCM_Mirror,
};
enum EAutoMipmap {
kAM_Zero,
};
enum EBlackKey {
kBK_Zero,
};
CTexture(CInputStream& stream, EAutoMipmap mip, EBlackKey bk);
void Load(GXTexMapID texMapId, EClampMode clampMode) const;
2022-08-30 22:48:44 +00:00
static void InvalidateTexmap(GXTexMapID id);
short GetWidth() const { return mWidth; }
short GetHeight() const { return mHeight; }
private:
uint mTexelFormat; // TODO: Enum
short mWidth;
short mHeight;
uchar pad[0x60];
};
#endif // _CTEXTURE