KallistiOS git master
Independent SDK for the Sega Dreamcast
|
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. | |
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.
uint32 kos_img_t::byte_count |
Length of the image data, in bytes.
void* kos_img_t::data |
Image data in the specified format.
uint32 kos_img_t::h |
Height of the image.
uint32 kos_img_t::w |
Width of the image.