Class providing vertex attributes and instructions for rendering of a Plane. More...
#include </home/chochlik/devel/oglplus/include/oglplus/shapes/plane.hpp>
Inherits oglplus::shapes::DrawingInstructionWriter, and oglplus::shapes::DrawMode.
Public Types | |
| typedef VertexAttribsInfo< Plane > | 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 | |
| Plane (void) | |
| Creates a default plane. | |
| Plane (unsigned udiv, unsigned vdiv) | |
| Creates a default plane with udiv and vdiv divisions. | |
| Plane (const Vec3f u, const Vec3f v) | |
Creates a plane going through origin specified by u and v. | |
| Plane (const Vec3f p, const Vec3f u, const Vec3f v, unsigned udiv, unsigned vdiv) | |
Creates a plane going through p specified by u and v. | |
| FaceOrientation | FaceWinding (void) const |
| Returns the winding direction of faces. | |
| 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 | 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. | |
| 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. | |
| IndexArray | Indices (Patches) const |
| Returns element indices that are used with the drawing instructions. More... | |
| DrawingInstructions | Instructions (Patches) const |
| Returns the instructions for rendering. More... | |
| IndexArray | Indices (Edges) const |
| Returns edge element indices that are used with the drawing instructions. | |
| DrawingInstructions | Instructions (Edges) const |
| Returns the instructions for rendering. | |
Class providing vertex attributes and instructions for rendering of a Plane.
| typedef VertexAttribsInfo<Plane> oglplus::shapes::Plane::VertexAttribs |
Vertex attribute information for this shape builder.
Plane provides build functions for the following named vertex attributes:
| IndexArray oglplus::shapes::Plane::Indices | ( | Patches | ) | const |
Returns element indices that are used with the drawing instructions.
glverreq{4,0}
| DrawingInstructions oglplus::shapes::Plane::Instructions | ( | Patches | ) | const |
Returns the instructions for rendering.
glverreq{4,0}