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

RGB color type. No alpha component. More...

#include <Base.hpp>

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

Public Member Functions

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 r
 
uint8_t g
 
uint8_t b
 

Detailed Description

RGB color type. No alpha component.

The default color is pure black: RGB(0, 0, 0) = #000000.

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

Definition at line 355 of file Base.hpp.


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