Simulant
21.12-1275
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Public Member Functions | |
Pixel (uint8_t r, uint8_t g, uint8_t b, uint8_t a) | |
std::vector< uint8_t > | to_format (TextureFormat fmt) |
Public Attributes | |
uint8_t | rgba [4] |
std::vector< uint8_t > smlt::Pixel::to_format | ( | TextureFormat | fmt | ) |
Will attempt to convert to the specified format, will return empty data if this isn't possible. Return size will depend on the size of the texture format