cocos2d-x  3.0-alpha0
 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:
Object Grid3D TiledGrid3D

Public Member Functions

virtual ~GridBase (void)
bool initWithSize (const Size &gridSize, Texture2D *texture, bool bFlipped)
bool initWithSize (const Size &gridSize)
bool isActive (void)
 whether or not the grid is active More...
 
local 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...
 
local getReuseGrid ()
 number of times that the grid will be reused More...
 
void setReuseGrid (int nReuseGrid)
const SizegetGridSize (void)
 size of the grid More...
 
local getGridSize ()
 size of the grid More...
 
void setGridSize (const Size &gridSize)
const PointgetStep (void)
 pixels between the grids More...
 
local getStep ()
 pixels between the grids More...
 
void setStep (const Point &step)
bool isTextureFlipped (void)
 is texture flipped More...
 
var isTextureFlipped ()
 is texture flipped More...
 
local isTextureFlipped ()
 is texture flipped More...
 
void setTextureFlipped (bool bFlipped)
void beforeDraw (void)
void afterDraw (Node *target)
virtual void blit (void)
local blit ()
virtual void reuse (void)
local reuse ()
virtual void calculateVertexPoints (void)
local calculateVertexPoints ()
void set2DProjection (void)
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Static Public Member Functions

static GridBasecreate (const Size &gridSize, Texture2D *texture, bool flipped)
 create one Grid More...
 
var create ( var gridSize, var texture, var flipped)
 create one Grid More...
 
local create ( local gridSize, local texture, local flipped)
 create one Grid More...
 
static GridBasecreate (const Size &gridSize)
 create one Grid More...
 
var create ( var gridSize)
 create one Grid More...
 

Protected Attributes

bool _active
int _reuseGrid
Size _gridSize
var _gridSize
local _gridSize
Texture2D_texture
var _texture
local _texture
Point _step
Grabber_grabber
var _grabber
local _grabber
bool _isTextureFlipped
var _isTextureFlipped
local _isTextureFlipped
GLProgram_shaderProgram
var _shaderProgram
local _shaderProgram
Director::Projection _directorProjection
var _directorProjection
local _directorProjection
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Detailed Description

Base class for other.

Constructor & Destructor Documentation

virtual ~GridBase ( void  )
virtual

Member Function Documentation

void afterDraw ( Node target)
var afterDraw ( var  target)
local afterDraw ( local  target)
void beforeDraw ( void  )
var beforeDraw (   )
local beforeDraw (   )
virtual void blit ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

var blit (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

local blit (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

virtual void calculateVertexPoints ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

var calculateVertexPoints (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

local calculateVertexPoints (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

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

create one Grid

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

create one Grid

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

create one Grid

static GridBase* create ( const Size gridSize)
static

create one Grid

var create ( var  gridSize)
static

create one Grid

local create ( local  gridSize)
static

create one Grid

const Size& getGridSize ( void  )
inline

size of the grid

var getGridSize (   )
inline

size of the grid

local 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

local getReuseGrid (   )
inline

number of times that the grid will be reused

const Point& getStep ( void  )
inline

pixels between the grids

var getStep (   )
inline

pixels between the grids

local getStep (   )
inline

pixels between the grids

bool initWithSize ( const Size gridSize,
Texture2D texture,
bool  bFlipped 
)
var initWithSize ( var  gridSize,
var  texture,
var  bFlipped 
)
local initWithSize ( local  gridSize,
local  texture,
local  bFlipped 
)
bool initWithSize ( const Size gridSize)
var initWithSize ( var  gridSize)
local initWithSize ( local  gridSize)
bool isActive ( void  )
inline

whether or not the grid is active

var isActive (   )
inline

whether or not the grid is active

local isActive (   )
inline

whether or not the grid is active

bool isTextureFlipped ( void  )
inline

is texture flipped

var isTextureFlipped (   )
inline

is texture flipped

local isTextureFlipped (   )
inline

is texture flipped

virtual void reuse ( void  )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

var reuse (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

local reuse (   )
virtual

Reimplemented in TiledGrid3D, and Grid3D.

void set2DProjection ( void  )
var set2DProjection (   )
local set2DProjection (   )
void setActive ( bool  bActive)
var setActive ( var  bActive)
local setActive ( local  bActive)
void setGridSize ( const Size gridSize)
inline
var setGridSize ( var  gridSize)
inline
local setGridSize ( local  gridSize)
inline
void setReuseGrid ( int  nReuseGrid)
inline
var setReuseGrid ( var  nReuseGrid)
inline
local setReuseGrid ( local  nReuseGrid)
inline
void setStep ( const Point step)
inline
var setStep ( var  step)
inline
local setStep ( local  step)
inline
void setTextureFlipped ( bool  bFlipped)
var setTextureFlipped ( var  bFlipped)
local setTextureFlipped ( local  bFlipped)

Member Data Documentation

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

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