Axmol Engine 2.4.0-258ceca
|
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. | |
virtual void | beforeBlit () override |
virtual void | blit () override |
Interface used to blit the texture with grid to screen. | |
virtual void | reuse () override |
Interface, Reuse the grid vertices. | |
virtual void | calculateVertexPoints () override |
Interface, Calculate the vertices used for the blit. | |
void | setNeedDepthTestForBlit (bool neededDepthTest) |
![]() | |
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 () |
![]() | |
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 | |
![]() | |
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 | ( | ) |
Constructor.
@js ctor
~Grid3D | ( | ) |
Destructor.
@js NA @lua NA
Returns the original (non-transformed) vertex at a given position.
@js NA @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. @js NA