|
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_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. | |
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_t kos_img_t::byte_count |
Length of the image data, in bytes.
Referenced by load_kmg(), and setup().
| void* kos_img_t::data |
Image data in the specified format.
Referenced by render_png().
| uint32_t kos_img_t::fmt |
| uint32_t kos_img_t::h |
Height of the image.
Referenced by render_png(), and setup().
| uint32_t kos_img_t::w |
Width of the image.
Referenced by render_png(), and setup().