Eidolon
Public Member Functions | List of all members
VertexBuffer Class Reference

#include <RenderTypes.h>

Inheritance diagram for VertexBuffer:
Inheritance graph
Collaboration diagram for VertexBuffer:
Collaboration graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~VertexBuffer()

virtual ~VertexBuffer ( )
inlinevirtual

Member Function Documentation

◆ getColor()

virtual color getColor ( int  i) const
inlinevirtual

Returns the i'th color, i<numVertices()

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ getNormal()

virtual vec3 getNormal ( int  i) const
inlinevirtual

Returns the i'th normal, i<numVertices()

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ getUVWCoord()

virtual vec3 getUVWCoord ( int  i) const
inlinevirtual

Returns the i'th UVW texture coord, i<numVertices()

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ getVertex()

virtual vec3 getVertex ( int  i) const
inlinevirtual

Returns the i'th vertex, i<numVertices()

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ hasColor()

virtual bool hasColor ( ) const
inlinevirtual

Returns true if the buffer contains color data.

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ hasNormal()

virtual bool hasNormal ( ) const
inlinevirtual

Returns true if the buffer contains normal data.

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ hasUVWCoord()

virtual bool hasUVWCoord ( ) const
inlinevirtual

Returns true if the buffer contains texture coord data.

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.

◆ numVertices()

virtual sval numVertices ( ) const
inlinevirtual

Returns number of total vertices.

Reimplemented in MatrixVertexBuffer, and CallbackVertexBuffer< Ctx >.


The documentation for this class was generated from the following file: