Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Public Attributes | List of all members
smlt::Pixel Struct Reference

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]
 

Member Function Documentation

◆ to_format()

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


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