Base class for Other grid. More...
Inherits Ref.
Inherited by Grid3D, and TiledGrid3D.
Public Member Functions | |
| virtual | ~GridBase (void) |
| Destructor. | |
| int | getReuseGrid (void) const |
| Get number of times that the grid will be reused. More... | |
| var | getReuseGrid () |
| Get number of times that the grid will be reused. More... | |
| local | getReuseGrid () |
| Get number of times that the grid will be reused. More... | |
| void | setReuseGrid (int reuseGrid) |
| Set number of times that the grid will be reused. More... | |
| var | setReuseGrid ( var reuseGrid) |
| Set number of times that the grid will be reused. More... | |
| local | setReuseGrid ( local reuseGrid) |
| Set number of times that the grid will be reused. More... | |
| const Size & | getGridSize (void) const |
| Size of the grid. More... | |
| var | getGridSize () |
| Size of the grid. More... | |
| local | getGridSize () |
| Size of the grid. More... | |
| void | setGridSize (const Size &gridSize) |
| Set the size of the grid. More... | |
| var | setGridSize ( var gridSize) |
| Set the size of the grid. More... | |
| local | setGridSize ( local gridSize) |
| Set the size of the grid. More... | |
| const Vec2 & | getStep (void) const |
| Pixels between the grids. More... | |
| local | getStep () |
| Pixels between the grids. More... | |
| void | setStep (const Vec2 &step) |
| Get the pixels between the grids. More... | |
| var | setStep ( var step) |
| Get the pixels between the grids. More... | |
| local | setStep ( local step) |
| Get the pixels between the grids. More... | |
| bool | isTextureFlipped (void) const |
| is texture flipped. More... | |
| var | isTextureFlipped () |
| is texture flipped. More... | |
| local | isTextureFlipped () |
| is texture flipped. More... | |
| void | setTextureFlipped (bool flipped) |
| Set the texture flipped or not. More... | |
| var | setTextureFlipped ( var flipped) |
| Set the texture flipped or not. More... | |
| local | setTextureFlipped ( local flipped) |
| Set the texture flipped or not. More... | |
| virtual void | blit (void) |
| Interface used to blit the texture with grid to screen. More... | |
| virtual void | reuse (void) |
| Interface, Reuse the grid vertices. More... | |
| var | reuse () |
| Interface, Reuse the grid vertices. More... | |
| local | reuse () |
| Interface, Reuse the grid vertices. More... | |
| virtual void | calculateVertexPoints (void) |
| Interface, Calculate the vertices used for the blit. More... | |
| local | calculateVertexPoints () |
| Interface, Calculate the vertices used for the blit. More... | |
| void | set2DProjection (void) |
| Change projection to 2D for grabbing. More... | |
| bool | initWithSize (const Size &gridSize, Texture2D *texture, bool flipped) |
| local | initWithSize ( local gridSize, local texture, local flipped) |
| bool | isActive (void) const |
| var | isActive () |
| local | isActive () |
| void | beforeDraw (void) |
| virtual void | beforeBlit () |
| local | beforeBlit () |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. More... | |
Static Public Member Functions | |
| static GridBase * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
| create one Grid | |
| var | create ( var gridSize, var texture, var flipped) |
| create one Grid | |
| local | create ( local gridSize, local texture, local flipped) |
| create one Grid | |
| static GridBase * | create (const Size &gridSize) |
| create one Grid | |
| local | create ( local gridSize) |
| create one Grid | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
Base class for Other grid.
| bool initWithSize | ( | const Size & | gridSize, |
| Texture2D * | texture, | ||
| bool | flipped | ||
| ) |
Init the Grid base.
| gridSize | the size of the grid. |
| texture | The texture used for grab. |
| flipped | whether or not the grab texture should be flip by Y or not. |
| var initWithSize | ( | var | gridSize, |
| var | texture, | ||
| var | flipped | ||
| ) |
Init the Grid base.
| gridSize | the size of the grid. |
| texture | The texture used for grab. |
| flipped | whether or not the grab texture should be flip by Y or not. |
| local initWithSize | ( | local | gridSize, |
| local | texture, | ||
| local | flipped | ||
| ) |
Init the Grid base.
| gridSize | the size of the grid. |
| texture | The texture used for grab. |
| flipped | whether or not the grab texture should be flip by Y or not. |
|
inline |
Getter and setter of the active state of the grid.
|
inline |
Getter and setter of the active state of the grid.
|
inline |
Getter and setter of the active state of the grid.
|
inline |
Get number of times that the grid will be reused.
|
inline |
Get number of times that the grid will be reused.
|
inline |
Get number of times that the grid will be reused.
|
inline |
Set number of times that the grid will be reused.
|
inline |
Set number of times that the grid will be reused.
|
inline |
Set number of times that the grid will be reused.
|
inline |
Size of the grid.
|
inline |
Size of the grid.
|
inline |
Size of the grid.
|
inline |
Set the size of the grid.
|
inline |
Set the size of the grid.
|
inline |
Set the size of the grid.
|
inline |
Pixels between the grids.
|
inline |
Pixels between the grids.
|
inline |
Pixels between the grids.
|
inline |
Get the pixels between the grids.
|
inline |
Get the pixels between the grids.
|
inline |
Get the pixels between the grids.
|
inline |
is texture flipped.
|
inline |
is texture flipped.
|
inline |
is texture flipped.
| void setTextureFlipped | ( | bool | flipped | ) |
Set the texture flipped or not.
| var setTextureFlipped | ( | var | flipped | ) |
Set the texture flipped or not.
| local setTextureFlipped | ( | local | flipped | ) |
Set the texture flipped or not.
| void beforeDraw | ( | void | ) |
Init and reset the status when render effects by using the grid.
| var beforeDraw | ( | ) |
Init and reset the status when render effects by using the grid.
| local beforeDraw | ( | ) |
Init and reset the status when render effects by using the grid.
|
inlinevirtual |
Interface for custom action when before or after draw.
Reimplemented in Grid3D.
|
inlinevirtual |
Interface for custom action when before or after draw.
Reimplemented in Grid3D.
|
virtual |
Interface used to blit the texture with grid to screen.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface used to blit the texture with grid to screen.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface used to blit the texture with grid to screen.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Reuse the grid vertices.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Reuse the grid vertices.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Reuse the grid vertices.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Calculate the vertices used for the blit.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Calculate the vertices used for the blit.
Reimplemented in TiledGrid3D, and Grid3D.
|
virtual |
Interface, Calculate the vertices used for the blit.
Reimplemented in TiledGrid3D, and Grid3D.
| void set2DProjection | ( | void | ) |
Change projection to 2D for grabbing.
| var set2DProjection | ( | ) |
Change projection to 2D for grabbing.
| local set2DProjection | ( | ) |
Change projection to 2D for grabbing.