MochiEngine
Loading...
Searching...
No Matches
Mochi::Color Struct Reference

unsigned int vector of 4 elements, with the rgb elements of the color and an alpha channel. It also has automatic conversion to SDL_Color for ease of use with SDL. More...

#include <Types.hpp>

Public Member Functions

 Color (unsigned int _r, unsigned int _g, unsigned int _b, unsigned int _a)
 Color (const Color &c)
 Color (Color &&c)
 Color (const SDL_Color &c)
 operator SDL_Color () const
Color & operator= (const Color &other)
Color & operator= (const SDL_Color &other)

Public Attributes

unsigned int r
unsigned int g
unsigned int b
unsigned int a

Detailed Description

unsigned int vector of 4 elements, with the rgb elements of the color and an alpha channel. It also has automatic conversion to SDL_Color for ease of use with SDL.


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