Untitled 2D game engine pre-alpha
A 2D game engine made with Vulkan in C++
 
Loading...
Searching...
No Matches
Colour Struct Reference

Has alias 'Color'. Holds an 24 bit colour (+ an alpha channel) More...

#include <constants_and_types.h>

Public Member Functions

constexpr Colour (u8 red, u8 green, u8 blue)
 
constexpr Colour (u8 red, u8 green, u8 blue, u8 alpha)
 

Public Attributes

u8 r
 
u8 g
 
u8 b
 
u8 a
 

Detailed Description

Has alias 'Color'. Holds an 24 bit colour (+ an alpha channel)

Definition at line 33 of file constants_and_types.h.

Constructor & Destructor Documentation

◆ Colour() [1/3]

Colour::Colour ( )
inlineconstexpr

Definition at line 36 of file constants_and_types.h.

◆ Colour() [2/3]

Colour::Colour ( u8 red,
u8 green,
u8 blue )
inlineconstexpr

Definition at line 38 of file constants_and_types.h.

◆ Colour() [3/3]

Colour::Colour ( u8 red,
u8 green,
u8 blue,
u8 alpha )
inlineconstexpr

Definition at line 41 of file constants_and_types.h.

Member Data Documentation

◆ a

u8 Colour::a

Definition at line 35 of file constants_and_types.h.

◆ b

u8 Colour::b

Definition at line 35 of file constants_and_types.h.

◆ g

u8 Colour::g

Definition at line 35 of file constants_and_types.h.

◆ r

u8 Colour::r

Definition at line 35 of file constants_and_types.h.


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