Kohi Game Engine
texture Struct Reference

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...
 

Detailed Description

Represents a texture.

Field Documentation

◆ channel_count

u8 channel_count

The number of channels in the texture.

◆ flags

Holds various flags for this texture.

◆ generation

u32 generation

The texture generation. Incremented every time the data is reloaded.

◆ height

u32 height

The texture height.

◆ id

u32 id

The unique texture identifier.

◆ internal_data

void* internal_data

The raw texture data (pixels).

◆ mip_levels

u32 mip_levels

The number of mip maps the internal texture has. Must always be at least 1.

◆ name

The texture name.

◆ type

The texture type.

◆ width

u32 width

The texture width.


The documentation for this struct was generated from the following file: