Base class for other. More...
#include <CCGrid.h>
Public Member Functions | |
virtual | ~GridBase (void) |
bool | initWithSize (const Size &gridSize, Texture2D *texture, bool bFlipped) |
var | initWithSize ( var gridSize, var texture, var bFlipped) |
local | initWithSize ( local gridSize, local texture, local bFlipped) |
bool | initWithSize (const Size &gridSize) |
bool | isActive (void) const |
whether or not the grid is active More... | |
var | isActive () |
whether or not the grid is active More... | |
local | isActive () |
whether or not the grid is active More... | |
void | setActive (bool bActive) |
var | setActive ( var bActive) |
local | setActive ( local bActive) |
int | getReuseGrid (void) const |
number of times that the grid will be reused More... | |
var | getReuseGrid () |
number of times that the grid will be reused More... | |
local | getReuseGrid () |
number of times that the grid will be reused More... | |
void | setReuseGrid (int nReuseGrid) |
var | setReuseGrid ( var nReuseGrid) |
local | setReuseGrid ( local nReuseGrid) |
const Size & | getGridSize (void) const |
size of the grid More... | |
void | setGridSize (const Size &gridSize) |
var | setGridSize ( var gridSize) |
local | setGridSize ( local gridSize) |
const Point & | getStep (void) const |
pixels between the grids More... | |
void | setStep (const Point &step) |
var | setStep ( var step) |
local | setStep ( local step) |
bool | isTextureFlipped (void) const |
is texture flipped More... | |
var | isTextureFlipped () |
is texture flipped More... | |
local | isTextureFlipped () |
is texture flipped More... | |
void | setTextureFlipped (bool bFlipped) |
void | beforeDraw (void) |
var | beforeDraw () |
local | beforeDraw () |
void | afterDraw (Node *target) |
virtual void | blit (void) |
local | blit () |
virtual void | reuse (void) |
var | reuse () |
local | reuse () |
virtual void | calculateVertexPoints (void) |
local | calculateVertexPoints () |
void | set2DProjection (void) |
var | set2DProjection () |
local | set2DProjection () |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
void | release () |
Release the ownership immediately. More... | |
void | retain () |
Retains the ownership. More... | |
Object * | autorelease () |
Release the ownership sometime soon automatically. More... | |
bool | isSingleReference () const |
Returns a boolean value that indicates whether there is only one reference to the object. More... | |
unsigned int | retainCount () const |
Returns the object's current reference count. More... | |
virtual bool | isEqual (const Object *object) |
Returns a boolean value that indicates whether this object and a given object are equal. More... | |
virtual void | acceptVisitor (DataVisitor &visitor) |
virtual void | update (float dt) |
Static Public Member Functions | |
static GridBase * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
create one Grid More... | |
static GridBase * | create (const Size &gridSize) |
create one Grid More... | |
var | create ( var gridSize) |
create one Grid More... | |
local | create ( local gridSize) |
create one Grid More... | |
Protected Attributes | |
bool | _active |
long | _reuseGrid |
var | _reuseGrid |
local | _reuseGrid |
Size | _gridSize |
var | _gridSize |
local | _gridSize |
Texture2D * | _texture |
var | _texture |
local | _texture |
Point | _step |
var | _step |
local | _step |
Grabber * | _grabber |
var | _grabber |
local | _grabber |
bool | _isTextureFlipped |
var | _isTextureFlipped |
local | _isTextureFlipped |
GLProgram * | _shaderProgram |
var | _shaderProgram |
local | _shaderProgram |
Director::Projection | _directorProjection |
var | _directorProjection |
local | _directorProjection |
![]() | |
unsigned int | _reference |
count of references More... | |
unsigned int | _autoReleaseCount |
count of autorelease More... | |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
Base class for other.
|
virtual |
void afterDraw | ( | Node * | target) |
var afterDraw | ( | var | target) |
local afterDraw | ( | local | target) |
void beforeDraw | ( | void | ) |
var beforeDraw | ( | ) |
local beforeDraw | ( | ) |
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
create one Grid
|
static |
create one Grid
|
static |
create one Grid
|
static |
create one Grid
|
static |
create one Grid
|
inline |
size of the grid
|
inline |
size of the grid
|
inline |
size of the grid
|
inline |
number of times that the grid will be reused
|
inline |
number of times that the grid will be reused
|
inline |
number of times that the grid will be reused
|
inline |
pixels between the grids
|
inline |
pixels between the grids
|
inline |
pixels between the grids
var initWithSize | ( | var | gridSize, |
var | texture, | ||
var | bFlipped | ||
) |
local initWithSize | ( | local | gridSize, |
local | texture, | ||
local | bFlipped | ||
) |
bool initWithSize | ( | const Size & | gridSize) |
var initWithSize | ( | var | gridSize) |
local initWithSize | ( | local | gridSize) |
|
inline |
whether or not the grid is active
|
inline |
whether or not the grid is active
|
inline |
whether or not the grid is active
|
inline |
is texture flipped
|
inline |
is texture flipped
|
inline |
is texture flipped
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
void set2DProjection | ( | void | ) |
var set2DProjection | ( | ) |
local set2DProjection | ( | ) |
void setActive | ( | bool | bActive) |
var setActive | ( | var | bActive) |
local setActive | ( | local | bActive) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void setTextureFlipped | ( | bool | bFlipped) |
var setTextureFlipped | ( | var | bFlipped) |
local setTextureFlipped | ( | local | bFlipped) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |