diff options
Diffstat (limited to 'include/glu3.h')
-rw-r--r-- | include/glu3.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/glu3.h b/include/glu3.h index 6e809e5..f634a57 100644 --- a/include/glu3.h +++ b/include/glu3.h @@ -419,6 +419,28 @@ private: unsigned slices; unsigned stacks; }; + + +/** + * Shape generator that generates a cube. + */ +class GLUcube : public GLUshape { +public: + /** + * Construct a new cube shape generator + * + * \param radius Distance from the center of the cube to the center + * of one of the axis-aligned faces. + */ + GLUcube(GLdouble radius); + virtual unsigned vertex_count(void) const; + virtual unsigned element_count(void) const; + virtual unsigned primitive_count(void) const; + virtual void generate(GLUshapeConsumer *consumer) const; + +private: + double radius; +}; #endif #ifndef __cplusplus |