Class providing vertex attributes and instructions for rendering of a cage. More...
#include </home/chochlik/devel/oglplus/include/oglplus/shapes/cage.hpp>
Inherits oglplus::shapes::DrawingInstructionWriter, and oglplus::shapes::DrawMode.
Public Types | |
typedef VertexAttribsInfo< Cage > | VertexAttribs |
Vertex attribute information for this shape builder. More... | |
typedef std::vector< GLuint > | IndexArray |
The type of the index container returned by Indices() | |
Public Member Functions | |
Cage (void) | |
Constructs a unit cage centered at the origin. | |
Cage (GLdouble xs, GLdouble ys, GLdouble zs, GLdouble xb, GLdouble yb, GLdouble zb, GLuint xd, GLuint yd, GLuint zd) | |
Constructs a cage with width, height, depth. | |
FaceOrientation | FaceWinding (void) const |
Returns the winding direction of faces. | |
template<typename T > | |
GLuint | Positions (std::vector< T > &dest) const |
Makes the vertices and returns the number of values per vertex. | |
template<typename T > | |
GLuint | Normals (std::vector< T > &dest) const |
Makes the normals and returns the number of values per vertex. | |
template<typename T > | |
GLuint | Tangents (std::vector< T > &dest) const |
Makes the tangents and returns the number of values per vertex. | |
template<typename T > | |
GLuint | TexCoordinates (std::vector< T > &dest) const |
Makes the texture coordinates 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. | |
Class providing vertex attributes and instructions for rendering of a cage.
typedef VertexAttribsInfo<Cage> oglplus::shapes::Cage::VertexAttribs |
Vertex attribute information for this shape builder.
Cage provides build functions for the following named vertex attributes: