Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
TiledGrid3D Class Reference

TiledGrid3D is a 3D grid implementation. More...

#include <Grid.h>

Inherits GridBase.

Public Member Functions

Quad3 getTile (const Vec2 &pos) const
 Returns the tile at the given position.
Quad3 getOriginalTile (const Vec2 &pos) const
 Returns the original tile (untransformed) at the given position.
void setTile (const Vec2 &pos, const Quad3 &coords)
 Sets a new tile.
void blit (const SceneRenderState &state) override
void reuse () override
 Interface, Reuse the grid vertices.
void calculateVertexPoints () override
 Interface, Calculate the vertices used for the blit.
Public Member Functions inherited from GridBase
virtual ~GridBase ()
 Destructor.
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 Vec2 & getGridSize () const
 The size of the grid.
void setGridSize (const Vec2 &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 setGridRect (const Rect &rect)
 Set the effect grid rect.
const Rect & getGridRect () const
 Get the effect grid rect.
virtual void beforeBlit ()
bool initWithSize (const Vec2 &gridSize)
bool isActive () const
void beforeDraw ()
Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
void release ()
 Releases the ownership immediately.
Object * autorelease ()
 Releases the ownership sometime soon automatically.
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
uint64_t getObjectID () const noexcept
 Returns the process-local diagnostic identifier assigned at construction.
virtual ~Object ()
 Destructor.

Static Public Member Functions

static TiledGrid3D * create (const Vec2 &gridSize)
 Create one Grid.
static TiledGrid3D * create (const Vec2 &gridSize, const Rect &rect)
 Create one Grid.
static TiledGrid3D * create (const Vec2 &gridSize, Texture2D *texture, bool flipped)
 Create one Grid.
static TiledGrid3D * create (const Vec2 &gridSize, Texture2D *texture, bool flipped, const Rect &rect)
 Create one Grid.

Detailed Description

TiledGrid3D is a 3D grid implementation.

It differs from Grid3D in that the tiles can be separated from the grid.

Member Function Documentation

◆ blit()

void blit ( const SceneRenderState & state)
overridevirtual

Implementations for interfaces in base class.

Implements GridBase.

◆ getTile()

Quad3 getTile ( const Vec2 & pos) const

Returns the tile at the given position.

@lua NA

◆ getOriginalTile()

Quad3 getOriginalTile ( const Vec2 & pos) const

Returns the original tile (untransformed) at the given position.

@lua NA

◆ setTile()

void setTile ( const Vec2 & pos,
const Quad3 & coords )

Sets a new tile.

@lua NA


The documentation for this class was generated from the following file:
  • Grid.h