Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
Color4ub Struct Reference

#include <Color.h>

Collaboration diagram for Color4ub:
Collaboration graph
[legend]

Public Member Functions

constexpr Color4ub ()
 
constexpr Color4ub (Uint8 r_, Uint8 g_, Uint8 b_)
 
constexpr Color4ub (Uint8 r_, Uint8 g_, Uint8 b_, Uint8 a_)
 
constexpr Color4ub (const Color4f &c)
 
constexpr Color4ub (const Uint32 rgba)
 
constexpr Color4ub (const Color4ub &c, const Uint8 a)
 
 operator unsigned char * ()
 
 operator const unsigned char * () const
 
Color4ub operator+ (const Color4ub &c) const
 
Color4uboperator*= (const float f)
 
Color4uboperator*= (const Color4ub &c)
 
Color4ub operator* (const float f) const
 
Color4ub operator* (const Color4ub &c) const
 
Color4ub operator/ (const float f) const
 
Color4f ToColor4f () const
 
void ToLuaTable (lua_State *l)
 
Uint8 GetLuminance () const
 
Color4ub Shade (float factor)
 
Color4ub Tint (float factor)
 
Color4ub Opacity (float factor)
 

Static Public Member Functions

static Color4ub FromLuaTable (lua_State *l, int idx)
 

Public Attributes

Uint8 r
 
Uint8 g
 
Uint8 b
 
Uint8 a
 

Static Public Attributes

static const Color4ub BLACK = Color(0, 0, 0, 255)
 
static const Color4ub WHITE = Color(255, 255, 255, 255)
 
static const Color4ub RED = Color(255, 0, 0, 255)
 
static const Color4ub GREEN = Color(0, 255, 0, 255)
 
static const Color4ub BLUE = Color(0, 0, 255, 255)
 
static const Color4ub YELLOW = Color(255, 255, 0, 255)
 
static const Color4ub GRAY = Color(128, 128, 128, 255)
 
static const Color4ub STEELBLUE = Color(68, 130, 181, 255)
 
static const Color4ub BLANK = Color(0, 0, 0, 0)
 
static const Color4ub PINK = Color(252, 15, 192, 255)
 

Friends

bool operator== (const Color4ub &aIn, const Color4ub &bIn)
 
bool operator!= (const Color4ub &aIn, const Color4ub &bIn)
 

Constructor & Destructor Documentation

◆ Color4ub() [1/6]

constexpr Color4ub::Color4ub ( )
inlineconstexpr

◆ Color4ub() [2/6]

constexpr Color4ub::Color4ub ( Uint8  r_,
Uint8  g_,
Uint8  b_ 
)
inlineconstexpr

◆ Color4ub() [3/6]

constexpr Color4ub::Color4ub ( Uint8  r_,
Uint8  g_,
Uint8  b_,
Uint8  a_ 
)
inlineconstexpr

◆ Color4ub() [4/6]

constexpr Color4ub::Color4ub ( const Color4f c)
inlineconstexpr

◆ Color4ub() [5/6]

constexpr Color4ub::Color4ub ( const Uint32  rgba)
inlineconstexpr

◆ Color4ub() [6/6]

constexpr Color4ub::Color4ub ( const Color4ub c,
const Uint8  a 
)
inlineconstexpr

Member Function Documentation

◆ FromLuaTable()

Color4ub Color4ub::FromLuaTable ( lua_State *  l,
int  idx 
)
static
Here is the call graph for this function:

◆ GetLuminance()

Uint8 Color4ub::GetLuminance ( ) const

◆ Opacity()

Color4ub Color4ub::Opacity ( float  factor)
inline

◆ operator const unsigned char *()

Color4ub::operator const unsigned char * ( ) const
inline

◆ operator unsigned char *()

Color4ub::operator unsigned char * ( )
inline

◆ operator*() [1/2]

Color4ub Color4ub::operator* ( const Color4ub c) const
inline
Here is the call graph for this function:

◆ operator*() [2/2]

Color4ub Color4ub::operator* ( const float  f) const
inline
Here is the call graph for this function:

◆ operator*=() [1/2]

Color4ub & Color4ub::operator*= ( const Color4ub c)
inline

◆ operator*=() [2/2]

Color4ub & Color4ub::operator*= ( const float  f)
inline

◆ operator+()

Color4ub Color4ub::operator+ ( const Color4ub c) const
inline
Here is the call graph for this function:

◆ operator/()

Color4ub Color4ub::operator/ ( const float  f) const
inline
Here is the call graph for this function:

◆ Shade()

Color4ub Color4ub::Shade ( float  factor)
inline

◆ Tint()

Color4ub Color4ub::Tint ( float  factor)
inline

◆ ToColor4f()

Color4f Color4ub::ToColor4f ( ) const
inline

◆ ToLuaTable()

void Color4ub::ToLuaTable ( lua_State *  l)
Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Color4ub aIn,
const Color4ub bIn 
)
friend

◆ operator==

bool operator== ( const Color4ub aIn,
const Color4ub bIn 
)
friend

Member Data Documentation

◆ a

Uint8 Color4ub::a

◆ b

Uint8 Color4ub::b

◆ BLACK

const Color4ub Color::BLACK = Color(0, 0, 0, 255)
static

◆ BLANK

const Color4ub Color::BLANK = Color(0, 0, 0, 0)
static

◆ BLUE

const Color4ub Color::BLUE = Color(0, 0, 255, 255)
static

◆ g

Uint8 Color4ub::g

◆ GRAY

const Color4ub Color::GRAY = Color(128, 128, 128, 255)
static

◆ GREEN

const Color4ub Color::GREEN = Color(0, 255, 0, 255)
static

◆ PINK

const Color4ub Color::PINK = Color(252, 15, 192, 255)
static

◆ r

Uint8 Color4ub::r

◆ RED

const Color4ub Color::RED = Color(255, 0, 0, 255)
static

◆ STEELBLUE

const Color4ub Color::STEELBLUE = Color(68, 130, 181, 255)
static

◆ WHITE

const Color4ub Color::WHITE = Color(255, 255, 255, 255)
static

◆ YELLOW

const Color4ub Color::YELLOW = Color(255, 255, 0, 255)
static

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