cocos2d-x  3.0alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Color4F Struct Reference

RGBA color composed of 4 floats. More...

#include <ccTypes.h>

Public Member Functions

 Color4F ()
 Color4F (float _r, float _g, float _b, float _a)
 Color4F (const Color3B &color)
 Color4F (const Color4B &color)
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 operator!= (const Color3B &right) const
bool operator!= (const Color4B &right) const
bool equals (const Color4F &other)

Public Attributes

GLfloat r
GLfloat g
GLfloat b
GLfloat a

Static Public Attributes

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

Detailed Description

RGBA color composed of 4 floats.

Since
v3.0

Constructor & Destructor Documentation

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

Member Function Documentation

bool equals ( const Color4F other)
inline
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 operator== ( const Color3B right) const
bool operator== ( const Color4B right) const

Member Data Documentation

GLfloat a
GLfloat b
const Color4F BLACK
static
const Color4F BLUE
static
GLfloat g
const Color4F GRAY
static
const Color4F GREEN
static
const Color4F MAGENTA
static
const Color4F ORANGE
static
GLfloat r
const Color4F RED
static
const Color4F WHITE
static
const Color4F YELLOW
static

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