⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Grid3D is a 3D grid implementation. More...
#include <Grid.h>
Inherits GridBase.
Public Member Functions | |
| Grid3D () | |
| Constructor. | |
| ~Grid3D () | |
| Destructor. | |
| Vec3 | getVertex (const Vec2 &pos) const |
| Returns the vertex at a given position. | |
| Vec3 | getOriginalVertex (const Vec2 &pos) const |
| Returns the original (non-transformed) vertex at a given position. | |
| void | setVertex (const Vec2 &pos, const Vec3 &vertex) |
| Sets a new vertex at a given position. | |
| void | beforeBlit () override |
| void | blit () override |
| Interface used to blit the texture with grid to screen. | |
| void | reuse () override |
| Interface, Reuse the grid vertices. | |
| void | calculateVertexPoints () override |
| Interface, Calculate the vertices used for the blit. | |
| void | setNeedDepthTestForBlit (bool neededDepthTest) |
| 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 | set2DProjection () |
| Change projection to 2D for grabbing. | |
| void | setGridRect (const Rect &rect) |
| Set the effect grid rect. | |
| const Rect & | getGridRect () const |
| Get the effect grid rect. | |
| 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. | |
| virtual | ~Object () |
| Destructor. | |
Static Public Member Functions | |
| static Grid3D * | create (const Vec2 &gridSize) |
| create one Grid. | |
| static Grid3D * | create (const Vec2 &gridSize, const Rect &rect) |
| create one Grid. | |
| static Grid3D * | create (const Vec2 &gridSize, Texture2D *texture, bool flipped) |
| create one Grid. | |
| static Grid3D * | create (const Vec2 &gridSize, Texture2D *texture, bool flipped, const Rect &rect) |
| create one Grid. | |
Additional Inherited Members | |
| Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
Grid3D is a 3D grid implementation.
Each vertex has 3 dimensions: x,y,z
| ~Grid3D | ( | ) |
Destructor.
@lua NA
Returns the original (non-transformed) vertex at a given position.
@lua NA
Sets a new vertex at a given position.
@lua NA
|
overridevirtual |
Implementations for interfaces in base class.
Reimplemented from GridBase.
|
inline |
Getter and Setter for depth test state when blit.