cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCTiledGrid3D Class Reference

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

#include <CCGrid.h>

Inheritance diagram for CCTiledGrid3D:
[legend]
Collaboration diagram for CCTiledGrid3D:
[legend]

Public Member Functions

 CCTiledGrid3D ()
 
 ~CCTiledGrid3D (void)
 
ccQuad3 tile (const CCPoint &pos)
 returns the tile at the given position More...
 
ccQuad3 originalTile (const CCPoint &pos)
 returns the original tile (untransformed) at the given position More...
 
void setTile (const CCPoint &pos, const ccQuad3 &coords)
 sets a new tile More...
 
virtual void blit (void)
 NA. More...
 
virtual void reuse (void)
 NA. More...
 
virtual void calculateVertexPoints (void)
 NA. More...
 
- Public Member Functions inherited from CCGridBase
virtual ~CCGridBase (void)
 NA NA. More...
 
bool isActive (void)
 whether or not the grid is active NA More...
 
void setActive (bool bActive)
 NA. More...
 
int getReuseGrid (void)
 number of times that the grid will be reused NA More...
 
void setReuseGrid (int nReuseGrid)
 NA. More...
 
const CCSizegetGridSize (void)
 size of the grid NA More...
 
void setGridSize (const CCSize &gridSize)
 NA. More...
 
const CCPointgetStep (void)
 pixels between the grids NA More...
 
void setStep (const CCPoint &step)
 NA. More...
 
bool isTextureFlipped (void)
 is texture flipped NA More...
 
void setTextureFlipped (bool bFlipped)
 NA. More...
 
bool initWithSize (const CCSize &gridSize, CCTexture2D *pTexture, bool bFlipped)
 NA. More...
 
bool initWithSize (const CCSize &gridSize)
 NA. More...
 
void beforeDraw (void)
 NA. More...
 
void afterDraw (CCNode *pTarget)
 NA. More...
 
virtual void blit (void)
 NA. More...
 
virtual void reuse (void)
 NA. More...
 
virtual void calculateVertexPoints (void)
 NA. More...
 
void set2DProjection (void)
 NA. More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 NA. More...
 
void release (void)
 
void retain (void)
 
CCObjectautorelease (void)
 
CCObjectcopy (void)
 
bool isSingleReference (void) const
 
unsigned int retainCount (void) const
 
virtual bool isEqual (const CCObject *pObject)
 
virtual void acceptVisitor (CCDataVisitor &visitor)
 
virtual void update (float dt)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- 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 More...
 
static CCTiledGrid3Dcreate (const CCSize &gridSize)
 create one Grid More...
 
- Static Public Member Functions inherited from CCGridBase
static CCGridBasecreate (const CCSize &gridSize, CCTexture2D *texture, bool flipped)
 create one Grid NA More...
 
static CCGridBasecreate (const CCSize &gridSize)
 create one Grid NA More...
 
- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 

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
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

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. NA NA

Constructor & Destructor Documentation

◆ CCTiledGrid3D()

◆ ~CCTiledGrid3D()

~CCTiledGrid3D ( void  )

Member Function Documentation

◆ blit()

virtual void blit ( void  )
virtual

NA.

Reimplemented from CCGridBase.

◆ calculateVertexPoints()

virtual void calculateVertexPoints ( void  )
virtual

NA.

Reimplemented from CCGridBase.

◆ create() [1/2]

static CCTiledGrid3D * create ( const CCSize gridSize)
static

create one Grid

◆ create() [2/2]

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

create one Grid

◆ originalTile()

ccQuad3 originalTile ( const CCPoint pos)

returns the original tile (untransformed) at the given position

◆ reuse()

virtual void reuse ( void  )
virtual

NA.

Reimplemented from CCGridBase.

◆ setTile()

void setTile ( const CCPoint pos,
const ccQuad3 coords 
)

sets a new tile

◆ tile()

ccQuad3 tile ( const CCPoint pos)

returns the tile at the given position

Member Data Documentation

◆ m_pIndices

GLushort* m_pIndices
protected

◆ m_pOriginalVertices

GLvoid* m_pOriginalVertices
protected

◆ m_pTexCoordinates

GLvoid* m_pTexCoordinates
protected

◆ m_pVertices

GLvoid* m_pVertices
protected

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