Kohi Game Engine
|
Represents a texture. More...
#include <resource_types.h>
Data Fields | |
u32 | id |
The unique texture identifier. More... | |
texture_type | type |
The texture type. More... | |
u32 | width |
The texture width. More... | |
u32 | height |
The texture height. More... | |
u8 | channel_count |
The number of channels in the texture. More... | |
texture_flag_bits | flags |
Holds various flags for this texture. More... | |
u32 | generation |
The texture generation. Incremented every time the data is reloaded. More... | |
char | name [TEXTURE_NAME_MAX_LENGTH] |
The texture name. More... | |
void * | internal_data |
The raw texture data (pixels). More... | |
u32 | mip_levels |
The number of mip maps the internal texture has. Must always be at least 1. More... | |
Represents a texture.
u8 channel_count |
The number of channels in the texture.
texture_flag_bits flags |
Holds various flags for this texture.
u32 generation |
The texture generation. Incremented every time the data is reloaded.
u32 height |
The texture height.
u32 id |
The unique texture identifier.
void* internal_data |
The raw texture data (pixels).
u32 mip_levels |
The number of mip maps the internal texture has. Must always be at least 1.
char name[TEXTURE_NAME_MAX_LENGTH] |
The texture name.
texture_type type |
The texture type.
u32 width |
The texture width.