Kohi Game Engine
image_resource_data Struct Reference

A structure to hold image resource data. More...

#include <resource_types.h>

Data Fields

u8 channel_count
 The number of channels. More...
 
u32 width
 The width of the image. More...
 
u32 height
 The height of the image. More...
 
u8pixels
 The pixel data of the image. More...
 
u32 mip_levels
 The number of mip levels to be generated for this image resource. Should be passed on to the texture using it. Must always be at least 1. More...
 

Detailed Description

A structure to hold image resource data.

Field Documentation

◆ channel_count

u8 channel_count

The number of channels.

◆ height

u32 height

The height of the image.

◆ mip_levels

u32 mip_levels

The number of mip levels to be generated for this image resource. Should be passed on to the texture using it. Must always be at least 1.

◆ pixels

u8* pixels

The pixel data of the image.

◆ width

u32 width

The width of the image.


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