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

Public Attributes

GLfloat r
var r
local r
GLfloat g
var g
local g
GLfloat b
var b
local b
GLfloat a
var a
local a

Static Public Attributes

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

Detailed Description

RGBA color composed of 4 floats.

Since
v3.0

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

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

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