cocos2d-x
3.3
|
Base class for other. More...
#include <CCGrid.h>
Public Member Functions | |
virtual | ~GridBase (void) |
NA NA More... | |
bool | initWithSize (const Size &gridSize, Texture2D *texture, bool flipped) |
bool | initWithSize (const Size &gridSize) |
bool | isActive (void) const |
whether or not the grid is active More... | |
void | setActive (bool active) |
int | getReuseGrid (void) const |
number of times that the grid will be reused More... | |
void | setReuseGrid (int reuseGrid) |
const Size & | getGridSize (void) const |
size of the grid More... | |
void | setGridSize (const Size &gridSize) |
const Vec2 & | getStep (void) const |
pixels between the grids More... | |
void | setStep (const Vec2 &step) |
bool | isTextureFlipped (void) const |
is texture flipped More... | |
void | setTextureFlipped (bool flipped) |
void | beforeDraw (void) |
void | afterDraw (Node *target) |
virtual void | beforeBlit () |
virtual void | afterBlit () |
virtual void | blit (void) |
virtual void | reuse (void) |
virtual void | calculateVertexPoints (void) |
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... | |
virtual | ~Ref () |
NA NA More... | |
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... | |
Protected Attributes | |
bool | _active |
int | _reuseGrid |
Size | _gridSize |
Texture2D * | _texture |
Vec2 | _step |
Grabber * | _grabber |
bool | _isTextureFlipped |
GLProgram * | _shaderProgram |
Director::Projection | _directorProjection |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Base class for other.
|
virtual |
NA NA
|
inlinevirtual |
Reimplemented in Grid3D.
void afterDraw | ( | Node * | target | ) |
|
inlinevirtual |
Reimplemented in Grid3D.
void beforeDraw | ( | void | ) |
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
create one Grid
|
inline |
size of the grid
|
inline |
number of times that the grid will be reused
|
inline |
pixels between the grids
bool initWithSize | ( | const Size & | gridSize | ) |
|
inline |
whether or not the grid is active
|
inline |
is texture flipped
|
virtual |
Reimplemented in TiledGrid3D, and Grid3D.
void set2DProjection | ( | void | ) |
void setActive | ( | bool | active | ) |
|
inline |
|
inline |
|
inline |
void setTextureFlipped | ( | bool | flipped | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |