Grid3D is a 3D grid implementation. More...
Inherits GridBase.
Public Member Functions | |
| Grid3D () | |
| Constructor. More... | |
| ~Grid3D () | |
| Destructor. More... | |
| Vec3 | getVertex (const Vec2 &pos) const |
| Returns the vertex at a given position. More... | |
| Vec3 | getOriginalVertex (const Vec2 &pos) const |
| Returns the original (non-transformed) vertex at a given position. More... | |
| void | setVertex (const Vec2 &pos, const Vec3 &vertex) |
| Sets a new vertex at a given position. More... | |
| 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) |
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... | |
| 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 Grid3D * | create (const Size &gridSize) |
| create one Grid. | |
| static Grid3D * | create (const Size &gridSize, const Rect &rect) |
| create one Grid. | |
| static Grid3D * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
| create one Grid. | |
| static Grid3D * | 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. | |
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