Base class for other. More...
#include <CCGrid.h>
Public Member Functions | |
| virtual | ~GridBase (void) |
| bool | initWithSize (const Size &gridSize, Texture2D *texture, bool flipped) |
| bool | initWithSize (const Size &gridSize) |
| var | initWithSize ( var gridSize) |
| local | initWithSize ( local 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 active) |
| var | setActive ( var active) |
| local | setActive ( local active) |
| 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 reuseGrid) |
| var | setReuseGrid ( var reuseGrid) |
| local | setReuseGrid ( local reuseGrid) |
| const Size & | getGridSize (void) const |
| size of the grid More... | |
| local | getGridSize () |
| size of the grid More... | |
| void | setGridSize (const Size &gridSize) |
| var | setGridSize ( var gridSize) |
| local | setGridSize ( local gridSize) |
| const Vec2 & | getStep (void) const |
| pixels between the grids More... | |
| local | getStep () |
| pixels between the grids More... | |
| void | setStep (const Vec2 &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 flipped) |
| void | beforeDraw (void) |
| var | beforeDraw () |
| local | beforeDraw () |
| void | afterDraw (Node *target) |
| var | afterDraw ( var target) |
| local | afterDraw ( local target) |
| virtual void | beforeBlit () |
| var | beforeBlit () |
| local | beforeBlit () |
| virtual void | afterBlit () |
| local | afterBlit () |
| virtual void | blit (void) |
| local | blit () |
| virtual void | reuse (void) |
| local | reuse () |
| virtual void | calculateVertexPoints (void) |
| local | calculateVertexPoints () |
| void | set2DProjection (void) |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static GridBase * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
| create one Grid More... | |
| local | create ( local gridSize, local texture, local flipped) |
| create one Grid More... | |
| static GridBase * | create (const Size &gridSize) |
| create one Grid More... | |
| local | create ( local gridSize) |
| create one Grid More... | |
Protected Attributes | |
| bool | _active |
| local | _active |
| int | _reuseGrid |
| var | _reuseGrid |
| local | _reuseGrid |
| Size | _gridSize |
| var | _gridSize |
| local | _gridSize |
| Texture2D * | _texture |
| var | _texture |
| local | _texture |
| Vec2 | _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 |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Base class for other.
|
virtual |
|
inlinevirtual |
Reimplemented in Grid3D.
|
inlinevirtual |
Reimplemented in Grid3D.
|
inlinevirtual |
Reimplemented in Grid3D.
| void afterDraw | ( | Node * | target | ) |
| var afterDraw | ( | var | target | ) |
| local afterDraw | ( | local | target | ) |
|
inlinevirtual |
Reimplemented in Grid3D.
|
inlinevirtual |
Reimplemented in Grid3D.
|
inlinevirtual |
Reimplemented in Grid3D.
| 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 | flipped | ||
| ) |
| local initWithSize | ( | local | gridSize, |
| local | texture, | ||
| local | flipped | ||
| ) |
| 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 | active | ) |
| var setActive | ( | var | active | ) |
| local setActive | ( | local | active | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void setTextureFlipped | ( | bool | flipped | ) |
| var setTextureFlipped | ( | var | flipped | ) |
| local setTextureFlipped | ( | local | flipped | ) |
|
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 |