KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
kos_img_t Struct Reference

Platform-indpendent image type. More...

#include <kos/img.h>

Data Fields

void * data
 Image data in the specified format.
 
uint32 w
 Width of the image.
 
uint32 h
 Height of the image.
 
uint32 fmt
 Format of the image data.
 
uint32 byte_count
 Length of the image data, in bytes.
 

Detailed Description

Platform-indpendent image type.

You can use this type for textures or whatever you feel it's appropriate for. "width" and "height" are as you would expect. "format" has a lower-half which is platform-independent and used to basically describe the contained data; the upper-half is platform-dependent and can hold anything (so AND it off if you only want the bottom part).

Note that in some of the more obscure formats (like the paletted formats) the data interpretation may be platform dependent. Thus we also provide a data length field.

Field Documentation

◆ byte_count

uint32 kos_img_t::byte_count

Length of the image data, in bytes.

◆ data

void* kos_img_t::data

Image data in the specified format.

◆ fmt

uint32 kos_img_t::fmt

Format of the image data.

See also
Types
Accessors

◆ h

uint32 kos_img_t::h

Height of the image.

◆ w

uint32 kos_img_t::w

Width of the image.


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