Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Color Struct Reference

#include <rendering_device.h>

Public Member Functions

 Color (float r=1.0f, float g=1.0f, float b=1.0f, float a=1.0f)
 
glm::vec4 to_vec4 () const
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Static Public Attributes

static const Color WHITE = Color(1, 1, 1, 1)
 
static const Color BLACK = Color(0, 0, 0, 1)
 
static const Color RED = Color(1, 0, 0, 1)
 
static const Color GREEN = Color(0, 1, 0, 1)
 
static const Color BLUE = Color(0, 0, 1, 1)
 
static const Color YELLOW = Color(1, 1, 0, 1)
 
static const Color CYAN = Color(0, 1, 1, 1)
 
static const Color MAGENTA = Color(1, 0, 1, 1)
 

Constructor & Destructor Documentation

◆ Color()

Color::Color ( float  r = 1.0f,
float  g = 1.0f,
float  b = 1.0f,
float  a = 1.0f 
)
inline

Member Function Documentation

◆ to_vec4()

glm::vec4 Color::to_vec4 ( ) const
inline

Member Data Documentation

◆ a

float Color::a

◆ b

float Color::b

◆ BLACK

const Color Color::BLACK = Color(0, 0, 0, 1)
static

◆ BLUE

const Color Color::BLUE = Color(0, 0, 1, 1)
static

◆ CYAN

const Color Color::CYAN = Color(0, 1, 1, 1)
static

◆ g

float Color::g

◆ GREEN

const Color Color::GREEN = Color(0, 1, 0, 1)
static

◆ MAGENTA

const Color Color::MAGENTA = Color(1, 0, 1, 1)
static

◆ r

float Color::r

◆ RED

const Color Color::RED = Color(1, 0, 0, 1)
static

◆ WHITE

const Color Color::WHITE = Color(1, 1, 1, 1)
static

◆ YELLOW

const Color Color::YELLOW = Color(1, 1, 0, 1)
static

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