rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Public Member Functions | Public Attributes | List of all members
rolmodl::RGBA Struct Reference

RGBA color type. Has an alpha component. More...

#include <Base.hpp>

Inheritance diagram for rolmodl::RGBA:
rolmodl::RGB

Public Member Functions

constexpr RGBA ()
 Initialize as the default pure opaque black color: RGBA(0, 0, 0, 255) = #000000ff.
 
constexpr RGBA (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b)
 Initialize with the given red, green, blue values and the default alpha of 255.
 
constexpr RGBA (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b, const uint8_t arg_a)
 Initialize with the given red, green, blue, and alpha values.
 
- Public Member Functions inherited from rolmodl::RGB
constexpr RGB ()
 Initialize as the default pure black color: RGB(0, 0, 0) = #000000.
 
constexpr RGB (const uint8_t arg_r, const uint8_t arg_g, const uint8_t arg_b)
 Initialize with the given red, green, and blue values.
 

Public Attributes

uint8_t a
 
- Public Attributes inherited from rolmodl::RGB
uint8_t r
 
uint8_t g
 
uint8_t b
 

Detailed Description

RGBA color type. Has an alpha component.

The default color is pure opaque black: RGBA(0, 0, 0, 255) = #000000ff. The default alpha value is 255.

See also
https://wiki.libsdl.org/SDL_Color

Definition at line 377 of file Base.hpp.


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