cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GridBase Class Reference

Base class for other. More...

#include <CCGrid.h>

Inheritance diagram for GridBase:
Ref Grid3D TiledGrid3D

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 SizegetGridSize (void) const
 size of the grid More...
 
void setGridSize (const Size &gridSize)
 
const Vec2getStep (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...
 
Refautorelease ()
 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 GridBasecreate (const Size &gridSize, Texture2D *texture, bool flipped)
 create one Grid More...
 
static GridBasecreate (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...
 

Detailed Description

Base class for other.

Constructor & Destructor Documentation

virtual ~GridBase ( void  )
virtual

NA NA

Member Function Documentation

virtual void afterBlit ( )
inlinevirtual

Reimplemented in Grid3D.

void afterDraw ( Node target)
virtual void beforeBlit ( )
inlinevirtual

Reimplemented in Grid3D.

void beforeDraw ( void  )
virtual void blit ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

virtual void calculateVertexPoints ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

static GridBase* create ( const Size gridSize,
Texture2D texture,
bool  flipped 
)
static

create one Grid

static GridBase* create ( const Size gridSize)
static

create one Grid

const Size& getGridSize ( void  ) const
inline

size of the grid

int getReuseGrid ( void  ) const
inline

number of times that the grid will be reused

const Vec2& getStep ( void  ) const
inline

pixels between the grids

bool initWithSize ( const Size gridSize,
Texture2D texture,
bool  flipped 
)
bool initWithSize ( const Size gridSize)
bool isActive ( void  ) const
inline

whether or not the grid is active

bool isTextureFlipped ( void  ) const
inline

is texture flipped

virtual void reuse ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

void set2DProjection ( void  )
void setActive ( bool  active)
void setGridSize ( const Size gridSize)
inline
void setReuseGrid ( int  reuseGrid)
inline
void setStep ( const Vec2 step)
inline
void setTextureFlipped ( bool  flipped)

Member Data Documentation

bool _active
protected
Director::Projection _directorProjection
protected
Grabber* _grabber
protected
Size _gridSize
protected
bool _isTextureFlipped
protected
int _reuseGrid
protected
GLProgram* _shaderProgram
protected
Vec2 _step
protected
Texture2D* _texture
protected

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