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

Base class for other. More...

#include <CCGrid.h>

Inheritance diagram for CCGridBase:
CCObject CCCopying CCGrid3D CCTiledGrid3D

Public Member Functions

virtual ~CCGridBase (void)
bool isActive (void)
 whether or not the grid is active More...
 
var isActive ()
 whether or not the grid is active More...
 
void setActive (bool bActive)
int getReuseGrid (void)
 number of times that the grid will be reused More...
 
var getReuseGrid ()
 number of times that the grid will be reused More...
 
void setReuseGrid (int nReuseGrid)
const CCSizegetGridSize (void)
 size of the grid More...
 
void setGridSize (const CCSize &gridSize)
const CCPointgetStep (void)
 pixels between the grids More...
 
void setStep (const CCPoint &step)
var setStep ( var step)
bool isTextureFlipped (void)
 is texture flipped More...
 
var isTextureFlipped ()
 is texture flipped More...
 
void setTextureFlipped (bool bFlipped)
bool initWithSize (const CCSize &gridSize, CCTexture2D *pTexture, bool bFlipped)
var initWithSize ( var gridSize, var pTexture, var bFlipped)
bool initWithSize (const CCSize &gridSize)
void beforeDraw (void)
var beforeDraw ()
void afterDraw (CCNode *pTarget)
var afterDraw ( var pTarget)
virtual void blit (void)
virtual void reuse (void)
virtual void calculateVertexPoints (void)
void set2DProjection (void)
var set2DProjection ()
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
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)
- 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 More...
 
var create ( var gridSize, var texture, var flipped)
 create one Grid More...
 
static CCGridBasecreate (const CCSize &gridSize)
 create one Grid More...
 
var create ( var gridSize)
 create one Grid More...
 

Protected Attributes

bool m_bActive
int m_nReuseGrid
var m_nReuseGrid
local m_nReuseGrid
CCSize m_sGridSize
var m_sGridSize
local m_sGridSize
CCTexture2Dm_pTexture
var m_pTexture
local m_pTexture
CCPoint m_obStep
var m_obStep
local m_obStep
CCGrabberm_pGrabber
var m_pGrabber
local m_pGrabber
bool m_bIsTextureFlipped
var m_bIsTextureFlipped
local m_bIsTextureFlipped
CCGLProgramm_pShaderProgram
var m_pShaderProgram
local m_pShaderProgram
ccDirectorProjection m_directorProjection
var m_directorProjection
local 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

Base class for other.

Constructor & Destructor Documentation

virtual ~CCGridBase ( void  )
virtual

Member Function Documentation

void afterDraw ( CCNode pTarget)
var afterDraw ( var  pTarget)
void beforeDraw ( void  )
var beforeDraw (   )
virtual void blit ( void  )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

var blit (   )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

virtual void calculateVertexPoints ( void  )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

var calculateVertexPoints (   )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

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

create one Grid

var create ( var  gridSize,
var  texture,
var  flipped 
)
static

create one Grid

static CCGridBase* create ( const CCSize gridSize)
static

create one Grid

var create ( var  gridSize)
static

create one Grid

const CCSize& getGridSize ( void  )
inline

size of the grid

var getGridSize (   )
inline

size of the grid

int getReuseGrid ( void  )
inline

number of times that the grid will be reused

var getReuseGrid (   )
inline

number of times that the grid will be reused

const CCPoint& getStep ( void  )
inline

pixels between the grids

var getStep (   )
inline

pixels between the grids

bool initWithSize ( const CCSize gridSize,
CCTexture2D pTexture,
bool  bFlipped 
)
var initWithSize ( var  gridSize,
var  pTexture,
var  bFlipped 
)
bool initWithSize ( const CCSize gridSize)
var initWithSize ( var  gridSize)
bool isActive ( void  )
inline

whether or not the grid is active

var isActive (   )
inline

whether or not the grid is active

bool isTextureFlipped ( void  )
inline

is texture flipped

var isTextureFlipped (   )
inline

is texture flipped

virtual void reuse ( void  )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

var reuse (   )
virtual

Reimplemented in CCTiledGrid3D, and CCGrid3D.

void set2DProjection ( void  )
var set2DProjection (   )
void setActive ( bool  bActive)
var setActive ( var  bActive)
void setGridSize ( const CCSize gridSize)
inline
var setGridSize ( var  gridSize)
inline
void setReuseGrid ( int  nReuseGrid)
inline
var setReuseGrid ( var  nReuseGrid)
inline
void setStep ( const CCPoint step)
inline
var setStep ( var  step)
inline
void setTextureFlipped ( bool  bFlipped)
var setTextureFlipped ( var  bFlipped)

Member Data Documentation

bool m_bActive
protected
var m_bActive
protected
local m_bActive
protected
bool m_bIsTextureFlipped
protected
var m_bIsTextureFlipped
protected
local m_bIsTextureFlipped
protected
ccDirectorProjection
m_directorProjection
protected
var m_directorProjection
protected
local m_directorProjection
protected
int m_nReuseGrid
protected
var m_nReuseGrid
protected
local m_nReuseGrid
protected
CCPoint m_obStep
protected
var m_obStep
protected
local m_obStep
protected
CCGrabber* m_pGrabber
protected
var m_pGrabber
protected
local m_pGrabber
protected
CCGLProgram* m_pShaderProgram
protected
var m_pShaderProgram
protected
local m_pShaderProgram
protected
CCTexture2D* m_pTexture
protected
var m_pTexture
protected
local m_pTexture
protected
CCSize m_sGridSize
protected
var m_sGridSize
protected
local m_sGridSize
protected

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