OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::shapes::SimpleIcosahedron Class Reference

Class providing vertex attributes and instructions for drawing of a icosahedron. More...

#include </home/chochlik/devel/oglplus/include/oglplus/shapes/icosahedron.hpp>

Inherits oglplus::shapes::DrawingInstructionWriter, oglplus::shapes::DrawMode, and oglplus::shapes::IcosahedronBase.

Public Types

typedef VertexAttribsInfo
< Icosahedron
VertexAttribs
 Vertex attribute information for this shape builder. More...
 
typedef std::vector< GLushort > IndexArray
 The type of the index container returned by Indices()
 

Public Member Functions

FaceOrientation FaceWinding (void) const
 Returns the winding direction of faces.
 
template<typename T >
GLuint Positions (std::vector< T > &dest) const
 Makes the positions and returns the number of values per vertex.
 
template<typename T >
void BoundingSphere (oglplus::Sphere< T > &bounding_sphere) const
 Queries the bounding sphere coordinates and dimensions.
 
IndexArray Indices (Default=Default()) const
 Returns element indices that are used with the drawing instructions.
 
DrawingInstructions Instructions (Default=Default()) const
 Returns the instructions for rendering of faces.
 

Detailed Description

Class providing vertex attributes and instructions for drawing of a icosahedron.

Member Typedef Documentation

Vertex attribute information for this shape builder.

Icosahedron provides build functions for the following named vertex attributes:

  • "Position" the vertex positions (Positions)

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