cocos2d-x  2.1.1

CCTiledGrid3D is a 3D grid implementation. More...

#include <CCGrid.h>

Inheritance diagram for CCTiledGrid3D:
CCGridBase CCObject CCCopying

Public Member Functions

 CCTiledGrid3D ()
 
 ~CCTiledGrid3D (void)
 
ccQuad3 tile (const CCPoint &pos)
 returns the tile at the given position
 
ccQuad3 originalTile (const CCPoint &pos)
 returns the original tile (untransformed) at the given position
 
void setTile (const CCPoint &pos, const ccQuad3 &coords)
 sets a new tile
 
virtual void blit (void)
 
virtual void reuse (void)
 
virtual void calculateVertexPoints (void)
 
- Public Member Functions inherited from CCGridBase
virtual ~CCGridBase (void)
 
bool isActive (void)
 whether or not the grid is active
 
void setActive (bool bActive)
 
int getReuseGrid (void)
 number of times that the grid will be reused
 
void setReuseGrid (int nReuseGrid)
 
const CCSizegetGridSize (void)
 size of the grid
 
void setGridSize (const CCSize &gridSize)
 
const CCPointgetStep (void)
 pixels between the grids
 
void setStep (const CCPoint &step)
 
bool isTextureFlipped (void)
 is texture flipped
 
void setTextureFlipped (bool bFlipped)
 
bool initWithSize (const CCSize &gridSize, CCTexture2D *pTexture, bool bFlipped)
 
bool initWithSize (const CCSize &gridSize)
 
void beforeDraw (void)
 
void afterDraw (CCNode *pTarget)
 
void set2DProjection (void)
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 
void release (void)
 
void retain (void)
 
CCObjectautorelease (void)
 
CCObjectcopy (void)
 
bool isSingleReference (void)
 
unsigned int retainCount (void)
 
virtual bool isEqual (const CCObject *pObject)
 
virtual void update (float dt)
 
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)
 

Static Public Member Functions

static CCTiledGrid3Dcreate (const CCSize &gridSize, CCTexture2D *pTexture, bool bFlipped)
 create one Grid
 
static CCTiledGrid3Dcreate (const CCSize &gridSize)
 create one Grid
 
- Static Public Member Functions inherited from CCGridBase
static CCGridBasecreate (const CCSize &gridSize, CCTexture2D *texture, bool flipped)
 create one Grid
 
static CCGridBasecreate (const CCSize &gridSize)
 create one Grid
 

Protected Attributes

GLvoid * m_pTexCoordinates
 
GLvoid * m_pVertices
 
GLvoid * m_pOriginalVertices
 
GLushort * m_pIndices
 
- Protected Attributes inherited from CCGridBase
bool m_bActive
 
int m_nReuseGrid
 
CCSize m_sGridSize
 
CCTexture2Dm_pTexture
 
CCPoint m_obStep
 
CCGrabberm_pGrabber
 
bool m_bIsTextureFlipped
 
CCGLProgramm_pShaderProgram
 
ccDirectorProjection m_directorProjection
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
 
unsigned int m_uAutoReleaseCount
 

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 

Detailed Description

CCTiledGrid3D is a 3D grid implementation.

It differs from Grid3D in that the tiles can be separated from the grid.

Constructor & Destructor Documentation

~CCTiledGrid3D ( void  )

Member Function Documentation

virtual void blit ( void  )
virtual

Reimplemented from CCGridBase.

virtual void calculateVertexPoints ( void  )
virtual

Reimplemented from CCGridBase.

static CCTiledGrid3D* create ( const CCSize gridSize,
CCTexture2D pTexture,
bool  bFlipped 
)
static

create one Grid

static CCTiledGrid3D* create ( const CCSize gridSize)
static

create one Grid

ccQuad3 originalTile ( const CCPoint pos)

returns the original tile (untransformed) at the given position

virtual void reuse ( void  )
virtual

Reimplemented from CCGridBase.

void setTile ( const CCPoint pos,
const ccQuad3 coords 
)

sets a new tile

ccQuad3 tile ( const CCPoint pos)

returns the tile at the given position

Member Data Documentation

GLushort* m_pIndices
protected
GLvoid* m_pOriginalVertices
protected
GLvoid* m_pTexCoordinates
protected
GLvoid* m_pVertices
protected

The documentation for this class was generated from the following file:
  • /Users/zhangkoumyou/SourceCode/cocos2d-x/cocos2dx/effects/CCGrid.h