Provides data and instructions for rendering of cube filling tetrahedrons. More...
#include </home/chochlik/devel/oglplus/include/oglplus/shapes/tetrahedrons.hpp>
Inherits oglplus::shapes::DrawingInstructionWriter, and oglplus::shapes::DrawMode.
Public Types | |
typedef VertexAttribsInfo < Tetrahedrons > | VertexAttribs |
Vertex attribute information for this shape builder. More... | |
typedef std::vector< GLuint > | IndexArray |
The type of index container returned by Indices() | |
Public Member Functions | |
Tetrahedrons (void) | |
Makes a unit sized tetrahedra filled cube with 10 divisions. | |
Tetrahedrons (GLdouble side, unsigned divisions) | |
Makes a cube with the specified side and number of divisions . | |
FaceOrientation | FaceWinding (void) const |
Returns the winding direction of faces. | |
template<typename T > | |
GLuint | Positions (std::vector< T > &dest) const |
Makes vertex coordinates and returns number of values per vertex. | |
template<typename T > | |
GLuint | TexCoordinates (std::vector< T > &dest) const |
Makes texture coorinates and returns number of values per vertex. | |
IndexArray | Indices (WithAdjacency=WithAdjacency()) const |
Returns element indices that are used with the drawing instructions. | |
DrawingInstructions | Instructions (WithAdjacency=WithAdjacency()) const |
Returns the instructions for rendering. | |
Provides data and instructions for rendering of cube filling tetrahedrons.
typedef VertexAttribsInfo<Tetrahedrons> oglplus::shapes::Tetrahedrons::VertexAttribs |
Vertex attribute information for this shape builder.
Tetrahedrons provides build functions for the following named vertex attributes: