Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
#include <engine_structs.h>
Public Member Functions | |
glm::vec4 | normalize_color () const |
Color | to_rgba (float r, float g, float b, float a) const |
bool | operator== (const Color &other) const |
Public Attributes | |
unsigned char | r |
unsigned char | g |
unsigned char | b |
unsigned char | a |
Static Public Attributes | |
static const Color | RED = {255, 0, 0, 255} |
static const Color | GREEN = {0, 255, 0, 255} |
static const Color | BLUE = {0, 0, 255, 255} |
static const Color | WHITE = {255, 255, 255, 255} |
static const Color | BLACK = {0, 0, 0, 255} |
static const Color | YELLOW = {255, 255, 0, 255} |
static const Color | CYAN = {0, 255, 255, 255} |
static const Color | MAGENTA = {255, 0, 255, 255} |
glm::vec4 Color::normalize_color | ( | ) | const |
bool Color::operator== | ( | const Color & | other | ) | const |
Color Color::to_rgba | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) | const |
unsigned char Color::a |
unsigned char Color::b |
|
static |
|
static |
|
static |
unsigned char Color::g |
|
static |
|
static |
unsigned char Color::r |
|
static |
|
static |
|
static |