feat: add mipmap_bias to TextureObject

- also label bounaries of our struct
This commit is contained in:
Hayden K 2019-04-17 14:25:46 -04:00
parent a812fd572e
commit c3635f1223

View File

@ -47,27 +47,33 @@ typedef struct {
} TexturePalette; } TexturePalette;
typedef struct { typedef struct {
GLushort width; //0
GLushort height;
GLuint color; /* This is the PVR texture format */
GLubyte env;
GLushort mipmap; /* Bitmask of supplied mipmap levels */
GLubyte mipmapCount; /* The number of mipmap levels */
GLubyte uv_clamp;
GLuint index; GLuint index;
GLvoid *data; GLuint color; /* This is the PVR texture format */
GLuint dataStride; //8
GLenum minFilter; GLenum minFilter;
GLenum magFilter; GLenum magFilter;
//16
GLboolean isCompressed; GLvoid *data;
GLboolean isPaletted;
TexturePalette* palette; TexturePalette* palette;
//24
GLushort width;
GLushort height;
//28
GLushort mipmap; /* Bitmask of supplied mipmap levels */
/* When using the shared palette, this is the bank (0-3) */ /* When using the shared palette, this is the bank (0-3) */
GLushort shared_bank; GLushort shared_bank;
//32
GLuint dataStride;
//36
GLubyte mipmap_bias;
GLubyte env;
GLubyte mipmapCount; /* The number of mipmap levels */
GLubyte uv_clamp;
//40
GLboolean isCompressed;
GLboolean isPaletted;
//44
} TextureObject; } TextureObject;
typedef struct { typedef struct {