TiledGrid3D is a 3D grid implementation. More...
Inherits GridBase.
Public Member Functions | |
| Quad3 | getTile (const Vec2 &pos) const |
| Returns the tile at the given position. More... | |
| Quad3 | getOriginalTile (const Vec2 &pos) const |
| Returns the original tile (untransformed) at the given position. More... | |
| void | setTile (const Vec2 &pos, const Quad3 &coords) |
| Sets a new tile. More... | |
| virtual void | blit () override |
| virtual void | reuse () override |
| Interface, Reuse the grid vertices. | |
| virtual void | calculateVertexPoints () override |
| Interface, Calculate the vertices used for the blit. | |
Public Member Functions inherited from GridBase | |
| virtual | ~GridBase () |
| Destructor. More... | |
| int | getReuseGrid () const |
| Get number of times that the grid will be reused. | |
| void | setReuseGrid (int reuseGrid) |
| Set number of times that the grid will be reused. | |
| const Size & | getGridSize () const |
| Size of the grid. | |
| void | setGridSize (const Size &gridSize) |
| Set the size of the grid. | |
| const Vec2 & | getStep () const |
| Pixels between the grids. | |
| void | setStep (const Vec2 &step) |
| Get the pixels between the grids. | |
| bool | isTextureFlipped () const |
| is texture flipped. | |
| void | setTextureFlipped (bool flipped) |
| Set the texture flipped or not. | |
| void | set2DProjection () |
| Change projection to 2D for grabbing. | |
| void | setGridRect (const Rect &rect) |
| Set the effect grid rect. More... | |
| const Rect & | getGridRect () const |
| Get the effect grid rect. More... | |
| virtual void | beforeBlit () |
| bool | initWithSize (const Size &gridSize) |
| bool | isActive () const |
| void | beforeDraw () |
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 TiledGrid3D * | create (const Size &gridSize) |
| Create one Grid. | |
| static TiledGrid3D * | create (const Size &gridSize, const Rect &rect) |
| Create one Grid. | |
| static TiledGrid3D * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
| Create one Grid. | |
| static TiledGrid3D * | create (const Size &gridSize, Texture2D *texture, bool flipped, const Rect &rect) |
| 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 | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
TiledGrid3D is a 3D grid implementation.
It differs from Grid3D in that the tiles can be separated from the grid.
|
overridevirtual |
Implementations for interfaces in base class.
Implements GridBase.
Returns the original tile (untransformed) at the given position.
@js NA @lua NA