X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcylinder.h;fp=source%2Fcylinder.h;h=c671bfee14e1a4e87220f6cf52749b900d4b4e60;hb=aa9884e69bc543682d1fe36ec5d054fdf11bcfac;hp=0000000000000000000000000000000000000000;hpb=bbfb79181f716736df413f463b55825866400ed8;p=libs%2Fgl.git diff --git a/source/cylinder.h b/source/cylinder.h new file mode 100644 index 00000000..c671bfee --- /dev/null +++ b/source/cylinder.h @@ -0,0 +1,32 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2011 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef CYLINDER_H_ +#define CYLINDER_H_ + +#include "geometrybuilder.h" + +namespace Msp { +namespace GL { + +class CylinderBuilder: public GeometryBuilder +{ +private: + float radius; + float length; + unsigned segments; + +public: + CylinderBuilder(float, float, unsigned = 16); + + virtual void build(PrimitiveBuilder &) const; +}; + +} // namespace GL +} // namespace Msp + +#endif