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

#include <Color.h>

Collaboration diagram for Color3ub:
Collaboration graph
[legend]

Public Member Functions

constexpr Color3ub ()
 
constexpr Color3ub (Uint8 v_)
 
constexpr Color3ub (Uint8 r_, Uint8 g_, Uint8 b_)
 
constexpr Color3ub (const Color4f &c)
 
 operator unsigned char * ()
 
 operator const unsigned char * () const
 
Color3uboperator*= (const Color3ub &c)
 
Color3ub operator+ (const Color3ub &c) const
 
Color3ub operator* (const float f) const
 
Color3ub operator* (const Color3ub &c) const
 
Color3ub operator/ (const float f) const
 
Color4f ToColor4f () const
 

Public Attributes

Uint8 r
 
Uint8 g
 
Uint8 b
 

Static Public Attributes

static const Color3ub BLACK = Color3ub(0, 0, 0)
 
static const Color3ub WHITE = Color3ub(255, 255, 255)
 
static const Color3ub RED = Color3ub(255, 0, 0)
 
static const Color3ub GREEN = Color3ub(0, 255, 0)
 
static const Color3ub BLUE = Color3ub(0, 0, 255)
 
static const Color3ub YELLOW = Color3ub(255, 255, 0)
 
static const Color3ub STEELBLUE = Color3ub(68, 130, 181)
 
static const Color3ub BLANK = Color3ub(0, 0, 0)
 

Constructor & Destructor Documentation

◆ Color3ub() [1/4]

constexpr Color3ub::Color3ub ( )
inlineconstexpr

◆ Color3ub() [2/4]

constexpr Color3ub::Color3ub ( Uint8  v_)
inlineconstexpr

◆ Color3ub() [3/4]

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

◆ Color3ub() [4/4]

constexpr Color3ub::Color3ub ( const Color4f c)
inlineconstexpr

Member Function Documentation

◆ operator const unsigned char *()

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

◆ operator unsigned char *()

Color3ub::operator unsigned char * ( )
inline

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=()

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

◆ operator+()

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

◆ operator/()

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

◆ ToColor4f()

Color4f Color3ub::ToColor4f ( ) const
inline

Member Data Documentation

◆ b

Uint8 Color3ub::b

◆ BLACK

const Color3ub Color3ub::BLACK = Color3ub(0, 0, 0)
static

◆ BLANK

const Color3ub Color3ub::BLANK = Color3ub(0, 0, 0)
static

◆ BLUE

const Color3ub Color3ub::BLUE = Color3ub(0, 0, 255)
static

◆ g

Uint8 Color3ub::g

◆ GREEN

const Color3ub Color3ub::GREEN = Color3ub(0, 255, 0)
static

◆ r

Uint8 Color3ub::r

◆ RED

const Color3ub Color3ub::RED = Color3ub(255, 0, 0)
static

◆ STEELBLUE

const Color3ub Color3ub::STEELBLUE = Color3ub(68, 130, 181)
static

◆ WHITE

const Color3ub Color3ub::WHITE = Color3ub(255, 255, 255)
static

◆ YELLOW

const Color3ub Color3ub::YELLOW = Color3ub(255, 255, 0)
static

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