forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
37
src/client/renderer/TextureData.h
Executable file
37
src/client/renderer/TextureData.h
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef NET_MINECRAFT_CLIENT_RENDERER__TextureData_H__
|
||||
#define NET_MINECRAFT_CLIENT_RENDERER__TextureData_H__
|
||||
|
||||
enum TextureFormat
|
||||
{
|
||||
TEXF_UNCOMPRESSED_8888,
|
||||
TEXF_UNCOMPRESSED_565,
|
||||
TEXF_UNCOMPRESSED_5551,
|
||||
TEXF_UNCOMPRESSED_4444,
|
||||
TEXF_COMPRESSED_PVRTC_565,
|
||||
TEXF_COMPRESSED_PVRTC_5551,
|
||||
TEXF_COMPRESSED_PVRTC_4444
|
||||
};
|
||||
|
||||
typedef struct TextureData {
|
||||
TextureData()
|
||||
: w(0),
|
||||
h(0),
|
||||
data(NULL),
|
||||
numBytes(0),
|
||||
transparent(true),
|
||||
memoryHandledExternally(false),
|
||||
format(TEXF_UNCOMPRESSED_8888),
|
||||
identifier(-1)
|
||||
{}
|
||||
|
||||
int w, h;
|
||||
unsigned char* data;
|
||||
int numBytes;
|
||||
bool transparent;
|
||||
bool memoryHandledExternally;
|
||||
|
||||
TextureFormat format;
|
||||
int identifier;
|
||||
} TextureData;
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_RENDERER__Textures_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue