prime/include/Kyoto/Graphics/CTexture.hpp

40 lines
644 B
C++
Raw Normal View History

2022-07-02 05:34:01 +00:00
#ifndef _CTEXTURE_HPP
#define _CTEXTURE_HPP
#include "types.h"
2022-08-30 22:48:44 +00:00
#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;
2022-08-30 22:48:44 +00:00
static void InvalidateTexmap(GXTexMapID id);
s16 GetWidth() const { return mWidth; }
s16 GetHeight() const { return mHeight; }
private:
u32 mTexelFormat; // TODO: Enum
s16 mWidth;
s16 mHeight;
u8 pad[0x60];
};
2022-09-18 06:05:46 +00:00
#endif