Eidolon
|
#include <RenderTypes.h>
Public Member Functions | |
virtual | ~VertexBuffer () |
virtual vec3 | getVertex (int i) const |
Returns the i'th vertex, i<numVertices() More... | |
virtual vec3 | getNormal (int i) const |
Returns the i'th normal, i<numVertices() More... | |
virtual color | getColor (int i) const |
Returns the i'th color, i<numVertices() More... | |
virtual vec3 | getUVWCoord (int i) const |
Returns the i'th UVW texture coord, i<numVertices() More... | |
virtual sval | numVertices () const |
Returns number of total vertices. More... | |
virtual bool | hasNormal () const |
Returns true if the buffer contains normal data. More... | |
virtual bool | hasColor () const |
Returns true if the buffer contains color data. More... | |
virtual bool | hasUVWCoord () const |
Returns true if the buffer contains texture coord data. More... | |
A VertexBuffer is used by Figure objects to fill their internal representations with vertex, normal, color, and texture UV coords. This can be subtyped in Python to adapt Python data structures to C++ for small figures.
|
inlinevirtual |
|
inlinevirtual |
Returns the i'th color, i<numVertices()
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns the i'th normal, i<numVertices()
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns the i'th UVW texture coord, i<numVertices()
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns the i'th vertex, i<numVertices()
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns true if the buffer contains color data.
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns true if the buffer contains normal data.
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns true if the buffer contains texture coord data.
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.
|
inlinevirtual |
Returns number of total vertices.
Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.