Grid3D is a 3D grid implementation. More...
#include <CCGrid.h>
Public Member Functions | |
| Grid3D () | |
| ~Grid3D (void) | |
| Vertex3F | getVertex (const Point &pos) const |
| returns the vertex at a given position More... | |
| CC_DEPRECATED_ATTRIBUTE Vertex3F | vertex (const Point &pos) const |
| Vertex3F | getOriginalVertex (const Point &pos) const |
| returns the original (non-transformed) vertex at a given position More... | |
| CC_DEPRECATED_ATTRIBUTE Vertex3F | originalVertex (const Point &pos) const |
| void | setVertex (const Point &pos, const Vertex3F &vertex) |
| sets a new vertex at a given position More... | |
| virtual void | blit () override |
| virtual void | reuse () override |
| virtual void | calculateVertexPoints () override |
Public Member Functions inherited from GridBase | |
| virtual | ~GridBase (void) |
| bool | initWithSize (const Size &gridSize, Texture2D *texture, bool bFlipped) |
| bool | initWithSize (const Size &gridSize) |
| bool | isActive (void) |
| whether or not the grid is active More... | |
| local | isActive () |
| whether or not the grid is active More... | |
| void | setActive (bool bActive) |
| int | getReuseGrid (void) |
| number of times that the grid will be reused More... | |
| local | getReuseGrid () |
| number of times that the grid will be reused More... | |
| void | setReuseGrid (int nReuseGrid) |
| const Size & | getGridSize (void) |
| size of the grid More... | |
| local | getGridSize () |
| size of the grid More... | |
| void | setGridSize (const Size &gridSize) |
| const Point & | getStep (void) |
| pixels between the grids More... | |
| local | getStep () |
| pixels between the grids More... | |
| void | setStep (const Point &step) |
| bool | isTextureFlipped (void) |
| is texture flipped More... | |
| var | isTextureFlipped () |
| is texture flipped More... | |
| local | isTextureFlipped () |
| is texture flipped More... | |
| void | setTextureFlipped (bool bFlipped) |
| void | beforeDraw (void) |
| void | afterDraw (Node *target) |
| void | set2DProjection (void) |
Public Member Functions inherited from Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
| virtual void | update (float dt) |
Static Public Member Functions | |
| static Grid3D * | create (const Size &gridSize, Texture2D *texture, bool bFlipped) |
| create one Grid More... | |
| static Grid3D * | create (const Size &gridSize) |
| create one Grid More... | |
Static Public Member Functions inherited from GridBase | |
| static GridBase * | 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 GridBase * | create (const Size &gridSize) |
| create one Grid More... | |
| var | create ( var gridSize) |
| create one Grid More... | |
Protected Attributes | |
| GLvoid * | _texCoordinates |
| GLvoid * | _vertices |
| GLvoid * | _originalVertices |
| GLushort * | _indices |
Protected Attributes inherited from GridBase | |
| bool | _active |
| int | _reuseGrid |
| Size | _gridSize |
| var | _gridSize |
| local | _gridSize |
| Texture2D * | _texture |
| var | _texture |
| local | _texture |
| Point | _step |
| Grabber * | _grabber |
| var | _grabber |
| local | _grabber |
| bool | _isTextureFlipped |
| var | _isTextureFlipped |
| local | _isTextureFlipped |
| GLProgram * | _shaderProgram |
| var | _shaderProgram |
| local | _shaderProgram |
| Director::Projection | _directorProjection |
| var | _directorProjection |
| local | _directorProjection |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
Additional Inherited Members | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
Grid3D is a 3D grid implementation.
Each vertex has 3 dimensions: x,y,z
| Grid3D | ( | ) |
| ~Grid3D | ( | void | ) |
|
overridevirtual |
Reimplemented from GridBase.
|
overridevirtual |
Reimplemented from GridBase.
create one Grid
returns the original (non-transformed) vertex at a given position
|
inline |
|
overridevirtual |
Reimplemented from GridBase.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |