OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::shapes::Tetrahedrons Class Reference

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.
 

Detailed Description

Provides data and instructions for rendering of cube filling tetrahedrons.

Member Typedef Documentation

Vertex attribute information for this shape builder.

Tetrahedrons provides build functions for the following named vertex attributes:

  • "Position" the vertex positions (Positions)
  • "TexCoord" the STR texture coordinates (TexCoordinates)

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

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).