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

RGBA color composed of 4 bytes. More...

#include <ccTypes.h>

Public Member Functions

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

Public Attributes

GLubyte r
GLubyte g
GLubyte b
GLubyte a

Static Public Attributes

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

Detailed Description

RGBA color composed of 4 bytes.

Since
v3.0

Constructor & Destructor Documentation

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

Member Function Documentation

bool operator!= ( const Color4B right) const
bool operator!= ( const Color3B right) const
bool operator!= ( const Color4F right) const
bool operator== ( const Color4B right) const
bool operator== ( const Color3B right) const
bool operator== ( const Color4F right) const

Member Data Documentation

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

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