prime/include/Kyoto/Graphics/CTexture.hpp
Luke Street 133326ae40 Replace int types in Retro code
Retro seemingly avoided using the Dolphin
typedefs in most places, opting to use int/uint
instead. This likely means they didn't use
u8/s8/u16/s16/etc either.
2022-10-09 01:37:23 -04:00

41 lines
662 B
C++

#ifndef _CTEXTURE
#define _CTEXTURE
#include "types.h"
#include <dolphin/gx/GXEnum.h>
class CInputStream;
class CTexture {
public:
enum EClampMode {
Clamp,
Repeat,
Mirror,
};
enum EAutoMipmap {
kAM_Zero,
};
enum EBlackKey {
kBK_Zero,
};
CTexture(CInputStream& stream, EAutoMipmap mip, EBlackKey bk);
void Load(GXTexMapID texMapId, EClampMode clampMode) const;
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