OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::shapes::RevolveY< Type > Class Template Reference

Class providing attributes and instructions for rendering of a revolved shape. More...

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

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

Public Types

typedef VertexAttribsInfo
< RevolveY
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

 RevolveY (unsigned sections, const std::vector< Vector< Type, 3 >> &positions, const std::vector< Vector< Type, 3 >> &normals, const std::vector< Vector< Type, 3 >> &tex_coords)
 Creates a shape by revolving curve approximation around the y-axis.
 
 RevolveY (const std::vector< Type > &section_factors, const std::vector< Vector< Type, 3 >> &positions_0, const std::vector< Vector< Type, 3 >> &positions_1, const std::vector< Vector< Type, 3 >> &normals_0, const std::vector< Vector< Type, 3 >> &normals_1, const std::vector< Vector< Type, 3 >> &tex_coords_0, const std::vector< Vector< Type, 3 >> &tex_coords_1)
 Creates a shape by revolving curve approximation around the y-axis.
 
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.
 
DrawingInstructions Instructions (Default=Default()) const
 Returns the instructions for rendering.
 

Detailed Description

template<typename Type>
class oglplus::shapes::RevolveY< Type >

Class providing attributes and instructions for rendering of a revolved shape.

Member Typedef Documentation

template<typename Type >
typedef VertexAttribsInfo<RevolveY> oglplus::shapes::RevolveY< Type >::VertexAttribs

Vertex attribute information for this shape builder.

Torus provides build functions for the following named vertex attributes:

  • "Position" the vertex positions (Positions)
  • "Normal" the vertex normal vectors (Normals)
  • "Tangent" the vertex tangent vector (Tangents)
  • "Bitangent" the vertex bi-tangent vector (Bitangents)
  • "TexCoord" the ST texture coordinates (TexCoordinates)

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/shapes/revolve.hpp

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