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_t w
 Width of the image.
 
uint32_t h
 Height of the image.
 
uint32_t fmt
 Format of the image data.
 
uint32_t 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_t kos_img_t::byte_count

Length of the image data, in bytes.

Referenced by load_kmg(), and setup().

◆ data

void* kos_img_t::data

Image data in the specified format.

Referenced by render_png().

◆ fmt

uint32_t kos_img_t::fmt

Format of the image data.

See also
Types
Accessors

Referenced by render_png().

◆ h

uint32_t kos_img_t::h

Height of the image.

Referenced by render_png(), and setup().

◆ w

uint32_t kos_img_t::w

Width of the image.

Referenced by render_png(), and setup().


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