FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::Color Class Reference

Public Member Functions

 Color (SDL_Color const &sdlColor) noexcept
 
 Color (VkClearColorValue const &clearColorValue) noexcept
 
 Color (glm::vec4 const &vec4) noexcept
 
 Color (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha=255) noexcept
 
 Color (uint32_t color) noexcept
 
 operator SDL_Color () const
 
 operator VkClearColorValue () const
 
 operator glm::vec4 () const
 
 operator glm::uvec4 () const
 
 operator uint32_t () const
 
uint32_t toInteger () const
 
bool operator== (Color const &right) const
 
bool operator!= (Color const &right) const
 
Color operator+ (Color const &right) const
 
Color operator- (Color const &right) const
 
Color operator* (Color const &right) const
 
Coloroperator+= (Color const &right)
 
Coloroperator-= (Color const &right)
 
Coloroperator*= (Color const &right)
 

Public Attributes

uint8_t _r
 
uint8_t _g
 
uint8_t _b
 
uint8_t _a
 

Static Public Attributes

static Color const Black
 Black predefined color.
 
static Color const White
 White predefined color.
 
static Color const Red
 Red predefined color.
 
static Color const Green
 Green predefined color.
 
static Color const Blue
 Blue predefined color.
 
static Color const Yellow
 Yellow predefined color.
 
static Color const Magenta
 Magenta predefined color.
 
static Color const Cyan
 Cyan predefined color.
 
static Color const Transparent
 Transparent (black) predefined color.
 

Member Data Documentation

◆ Black

Color const fge::Color::Black
inlinestatic

Black predefined color.

◆ Blue

Color const fge::Color::Blue
inlinestatic

Blue predefined color.

◆ Cyan

Color const fge::Color::Cyan
inlinestatic

Cyan predefined color.

◆ Green

Color const fge::Color::Green
inlinestatic

Green predefined color.

◆ Magenta

Color const fge::Color::Magenta
inlinestatic

Magenta predefined color.

◆ Red

Color const fge::Color::Red
inlinestatic

Red predefined color.

◆ Transparent

Color const fge::Color::Transparent
inlinestatic

Transparent (black) predefined color.

◆ White

Color const fge::Color::White
inlinestatic

White predefined color.

◆ Yellow

Color const fge::Color::Yellow
inlinestatic

Yellow predefined color.


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