Class providing vertex attributes and instructions for rendering of a Torus. More...
#include </home/chochlik/devel/oglplus/include/oglplus/shapes/torus.hpp>
Inherits oglplus::shapes::DrawingInstructionWriter, and oglplus::shapes::DrawMode.
Public Types | |
typedef VertexAttribsInfo< Torus > | VertexAttribs |
Vertex attribute information for this shape builder. More... | |
typedef std::vector< GLushort > | IndexArray |
The type of index container returned by Indices() | |
Public Member Functions | |
Torus (void) | |
Creates a torus with unit radius centered at the origin. | |
Torus (GLdouble rad_out, GLdouble rad_in, unsigned sects, unsigned rings) | |
Creates a torus with unit radius centered at the origin. | |
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 | Normals (std::vector< T > &dest) const |
Makes vertex normals and returns number of values per vertex. | |
template<typename T > | |
GLuint | Tangents (std::vector< T > &dest) const |
Makes vertex tangents and returns number of values per vertex. | |
template<typename T > | |
GLuint | Bitangents (std::vector< T > &dest) const |
Makes vertex bi-tangents and returns number of values per vertex. | |
template<typename T > | |
GLuint | TexCoordinates (std::vector< T > &dest) const |
Makes texture coordinates and returns 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. | |
IndexArray | Indices (Quads) const |
Returns element indices that are used with the drawing instructions. | |
IndexArray | Indices (WithAdjacency) const |
Returns element indices that are used with the drawing instructions. | |
DrawingInstructions | Instructions (Default=Default()) const |
Returns the instructions for rendering. | |
DrawingInstructions | Instructions (Quads) const |
Returns the instructions for rendering. | |
DrawingInstructions | Instructions (WithAdjacency) const |
Returns the instructions for rendering. | |
Class providing vertex attributes and instructions for rendering of a Torus.
typedef VertexAttribsInfo<Torus> oglplus::shapes::Torus::VertexAttribs |
Vertex attribute information for this shape builder.
Torus provides build functions for the following named vertex attributes: