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

Public Member Functions

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

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: