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

Base class for other. More...

#include <CCGrid.h>

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

Public Member Functions

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

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

Base class for other.

Constructor & Destructor Documentation

◆ ~CCGridBase()

virtual ~CCGridBase ( void  )
virtual

NA NA.

Member Function Documentation

◆ afterDraw()

void afterDraw ( CCNode pTarget)

NA.

◆ beforeDraw()

void beforeDraw ( void  )

NA.

◆ blit()

virtual void blit ( void  )
virtual

NA.

Reimplemented in CCGrid3D, and CCTiledGrid3D.

◆ calculateVertexPoints()

virtual void calculateVertexPoints ( void  )
virtual

NA.

Reimplemented in CCGrid3D, and CCTiledGrid3D.

◆ create() [1/2]

static CCGridBase * create ( const CCSize gridSize)
static

create one Grid NA

◆ create() [2/2]

static CCGridBase * create ( const CCSize gridSize,
CCTexture2D texture,
bool  flipped 
)
static

create one Grid NA

◆ getGridSize()

const CCSize & getGridSize ( void  )
inline

size of the grid NA

◆ getReuseGrid()

int getReuseGrid ( void  )
inline

number of times that the grid will be reused NA

◆ getStep()

const CCPoint & getStep ( void  )
inline

pixels between the grids NA

◆ initWithSize() [1/2]

bool initWithSize ( const CCSize gridSize)

NA.

◆ initWithSize() [2/2]

bool initWithSize ( const CCSize gridSize,
CCTexture2D pTexture,
bool  bFlipped 
)

NA.

◆ isActive()

bool isActive ( void  )
inline

whether or not the grid is active NA

◆ isTextureFlipped()

bool isTextureFlipped ( void  )
inline

is texture flipped NA

◆ reuse()

virtual void reuse ( void  )
virtual

NA.

Reimplemented in CCGrid3D, and CCTiledGrid3D.

◆ set2DProjection()

void set2DProjection ( void  )

NA.

◆ setActive()

void setActive ( bool  bActive)

NA.

◆ setGridSize()

void setGridSize ( const CCSize gridSize)
inline

NA.

◆ setReuseGrid()

void setReuseGrid ( int  nReuseGrid)
inline

NA.

◆ setStep()

void setStep ( const CCPoint step)
inline

NA.

◆ setTextureFlipped()

void setTextureFlipped ( bool  bFlipped)

NA.

Member Data Documentation

◆ m_bActive

bool m_bActive
protected

◆ m_bIsTextureFlipped

bool m_bIsTextureFlipped
protected

◆ m_directorProjection

ccDirectorProjection m_directorProjection
protected

◆ m_nReuseGrid

int m_nReuseGrid
protected

◆ m_obStep

CCPoint m_obStep
protected

◆ m_pGrabber

CCGrabber* m_pGrabber
protected

◆ m_pShaderProgram

CCGLProgram* m_pShaderProgram
protected

◆ m_pTexture

CCTexture2D* m_pTexture
protected

◆ m_sGridSize

CCSize m_sGridSize
protected

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