#include <glu3.h>
Public Member Functions | |
virtual void | vertex (const GLUvec4 &position, const GLUvec4 &normal, const GLUvec4 &tangent, const GLUvec4 &uv)=0 |
virtual void | begin_primitive (GLenum mode)=0 |
virtual void | index (unsigned idx)=0 |
virtual void | end_primitive (void)=0 |
Consumer for shape data generated by a GLUshapeProducer object
Objects of this class and its descenents are used to consume data generated by GLUshapeProducer
. The GLUshapeProducer
object is responsible for the format of the data generate, and the GLUshapeConsumer
object is repsonsible for storing that data.
This splits the functionality of the classic GLU's GLUquadric
structure.
virtual void GLUshapeConsumer::begin_primitive | ( | GLenum | mode | ) | [pure virtual] |
Start a new indexed primitive.
mode | GL primitive drawing mode used for this primitive |
virtual void GLUshapeConsumer::end_primitive | ( | void | ) | [pure virtual] |
End an index primitive previously started with begin_primitive
virtual void GLUshapeConsumer::index | ( | unsigned | idx | ) | [pure virtual] |
Emit an element index for drawing
virtual void GLUshapeConsumer::vertex | ( | const GLUvec4 & | position, | |
const GLUvec4 & | normal, | |||
const GLUvec4 & | tangent, | |||
const GLUvec4 & | uv | |||
) | [pure virtual] |
Emit an individual vertex
position | Object-space position of the vertex. | |
normal | Object-space normal of the vertex. | |
tangent | Object-space tangent of the vertex. | |
uv | Parameter-space position of the vertex. The per-vertex values will range from (0,0,0,0) to (1, 1, 0, 0). |