cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Color3B Struct Reference

RGB color composed of bytes 3 bytes. More...

#include <ccTypes.h>

Public Member Functions

 Color3B ()
 
 Color3B (GLubyte _r, GLubyte _g, GLubyte _b)
 
 Color3B (const Color4B &color)
 
 Color3B (const Color4F &color)
 
bool operator== (const Color3B &right) const
 
bool operator== (const Color4B &right) const
 
bool operator== (const Color4F &right) const
 
bool operator!= (const Color3B &right) const
 
bool operator!= (const Color4B &right) const
 
bool operator!= (const Color4F &right) const
 
bool equals (const Color3B &other)
 

Public Attributes

GLubyte r
 
GLubyte g
 
GLubyte b
 

Static Public Attributes

static const Color3B WHITE
 
static const Color3B YELLOW
 
static const Color3B BLUE
 
static const Color3B GREEN
 
static const Color3B RED
 
static const Color3B MAGENTA
 
static const Color3B BLACK
 
static const Color3B ORANGE
 
static const Color3B GRAY
 

Detailed Description

RGB color composed of bytes 3 bytes.

Since
v3.0

Constructor & Destructor Documentation

Color3B ( )
Color3B ( GLubyte  _r,
GLubyte  _g,
GLubyte  _b 
)
Color3B ( const Color4B color)
explicit
Color3B ( const Color4F color)
explicit

Member Function Documentation

bool equals ( const Color3B other)
inline
bool operator!= ( const Color3B right) const
bool operator!= ( const Color4B right) const
bool operator!= ( const Color4F right) const
bool operator== ( const Color3B right) const
bool operator== ( const Color4B right) const
bool operator== ( const Color4F right) const

Member Data Documentation

GLubyte b
const Color3B BLACK
static
const Color3B BLUE
static
GLubyte g
const Color3B GRAY
static
const Color3B GREEN
static
const Color3B MAGENTA
static
const Color3B ORANGE
static
GLubyte r
const Color3B RED
static
const Color3B WHITE
static
const Color3B YELLOW
static

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