Grid3D is a 3D grid implementation. More...
Inherits GridBase.
Public Member Functions | |
Grid3D () | |
Constructor. | |
~Grid3D (void) | |
Destructor. | |
Vec3 | getVertex (const Vec2 &pos) const |
Returns the vertex at a given position. | |
Vec3 | vertex (const Vec2 &pos) const |
var | vertex ( var pos) |
Vec3 | getOriginalVertex (const Vec2 &pos) const |
Returns the original (non-transformed) vertex at a given position. | |
Vec3 | originalVertex (const Vec2 &pos) const |
void | setVertex (const Vec2 &pos, const Vec3 &vertex) |
Sets a new vertex at a given position. | |
virtual void | beforeBlit () override |
var | beforeBlit () |
local | beforeBlit () |
virtual void | blit () override |
Interface used to blit the texture with grid to screen. More... | |
local | blit () |
Interface used to blit the texture with grid to screen. More... | |
virtual void | reuse () override |
Interface, Reuse the grid vertices. More... | |
var | reuse () |
Interface, Reuse the grid vertices. More... | |
local | reuse () |
Interface, Reuse the grid vertices. More... | |
virtual void | calculateVertexPoints () override |
Interface, Calculate the vertices used for the blit. More... | |
local | calculateVertexPoints () |
Interface, Calculate the vertices used for the blit. More... | |
void | setNeedDepthTestForBlit (bool neededDepthTest) |
local | setNeedDepthTestForBlit ( local neededDepthTest) |
Public Member Functions inherited from GridBase | |
virtual | ~GridBase (void) |
Destructor. | |
int | getReuseGrid () const |
Get number of times that the grid will be reused. More... | |
var | getReuseGrid () |
Get number of times that the grid will be reused. More... | |
local | getReuseGrid () |
Get number of times that the grid will be reused. More... | |
void | setReuseGrid (int reuseGrid) |
Set number of times that the grid will be reused. More... | |
const Size & | getGridSize () const |
Size of the grid. More... | |
var | getGridSize () |
Size of the grid. More... | |
local | getGridSize () |
Size of the grid. More... | |
void | setGridSize (const Size &gridSize) |
Set the size of the grid. More... | |
local | setGridSize ( local gridSize) |
Set the size of the grid. More... | |
const Vec2 & | getStep () const |
Pixels between the grids. More... | |
local | getStep () |
Pixels between the grids. More... | |
void | setStep (const Vec2 &step) |
Get the pixels between the grids. More... | |
local | setStep ( local step) |
Get the pixels between the grids. More... | |
bool | isTextureFlipped () const |
is texture flipped. More... | |
var | isTextureFlipped () |
is texture flipped. More... | |
local | isTextureFlipped () |
is texture flipped. More... | |
void | setTextureFlipped (bool flipped) |
Set the texture flipped or not. More... | |
var | setTextureFlipped ( var flipped) |
Set the texture flipped or not. More... | |
local | setTextureFlipped ( local flipped) |
Set the texture flipped or not. More... | |
void | set2DProjection (void) |
Change projection to 2D for grabbing. More... | |
var | set2DProjection () |
Change projection to 2D for grabbing. More... | |
local | set2DProjection () |
Change projection to 2D for grabbing. More... | |
void | setGridRect (const Rect &rect) |
Set the effect grid rect. More... | |
var | setGridRect ( var rect) |
Set the effect grid rect. More... | |
local | setGridRect ( local rect) |
Set the effect grid rect. More... | |
const Rect & | getGridRect () const |
Get the effect grid rect. More... | |
var | getGridRect () |
Get the effect grid rect. More... | |
local | getGridRect () |
Get the effect grid rect. More... | |
bool | initWithSize (const Size &gridSize) |
var | initWithSize ( var gridSize) |
local | initWithSize ( local gridSize) |
bool | isActive () const |
var | isActive () |
local | isActive () |
void | beforeDraw (void) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
local | 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... | |
local | getReferenceCount () |
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. More... | |
local | create ( local gridSize) |
create one Grid. More... | |
static Grid3D * | create (const Size &gridSize, const Rect &rect) |
create one Grid. More... | |
local | create ( local gridSize, local rect) |
create one Grid. More... | |
static Grid3D * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
create one Grid. More... | |
var | create ( var gridSize, var texture, var flipped) |
create one Grid. More... | |
local | create ( local gridSize, local texture, local flipped) |
create one Grid. More... | |
static Grid3D * | create (const Size &gridSize, Texture2D *texture, bool flipped, const Rect &rect) |
create one Grid. More... | |
var | create ( var gridSize, var texture, var flipped, var rect) |
create one Grid. More... | |
local | create ( local gridSize, local texture, local flipped, local rect) |
create one Grid. More... | |
Static Public Member Functions inherited from GridBase | |
static GridBase * | create (const Size &gridSize, Texture2D *texture, bool flipped) |
create one Grid | |
var | create ( var gridSize, var texture, var flipped) |
create one Grid | |
local | create ( local gridSize, local texture, local flipped) |
create one Grid | |
static GridBase * | create (const Size &gridSize) |
create one Grid | |
var | create ( var gridSize) |
create one Grid | |
local | create ( local gridSize) |
create one Grid | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
local | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
local | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
local | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
local | _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
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
static |
create one Grid.
|
inline |
|
inline |
|
overridevirtual |
Implementations for interfaces in base class.
Reimplemented from GridBase.
|
overridevirtual |
Implementations for interfaces in base class.
Reimplemented from GridBase.
|
overridevirtual |
Implementations for interfaces in base class.
Reimplemented from GridBase.
|
overridevirtual |
Interface used to blit the texture with grid to screen.
Reimplemented from GridBase.
|
overridevirtual |
Interface used to blit the texture with grid to screen.
Reimplemented from GridBase.
|
overridevirtual |
Interface used to blit the texture with grid to screen.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Reuse the grid vertices.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Reuse the grid vertices.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Reuse the grid vertices.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Calculate the vertices used for the blit.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Calculate the vertices used for the blit.
Reimplemented from GridBase.
|
overridevirtual |
Interface, Calculate the vertices used for the blit.
Reimplemented from GridBase.
|
inline |
Getter and Setter for depth test state when blit.
|
inline |
Getter and Setter for depth test state when blit.