Sphere.h

Go to the documentation of this file.
00001 #ifndef SPHERE_H_
00002 #define SPHERE_H_
00003 
00004 #include "BrushConstructor.h"
00005 
00006 namespace brushconstruct
00007 {
00008     class Sphere: public BrushConstructor
00009     {
00010         private:
00011             static const std::size_t _minSides = 3;
00012             static const std::size_t _maxSides = 31;
00013 
00014         public:
00015             void generate (Brush& brush, const AABB& bounds, std::size_t sides, const TextureProjection& projection,
00016                     const std::string& shader);
00017 
00018             const std::string getName () const;
00019 
00020             static BrushConstructor& getInstance ()
00021             {
00022                 static Sphere _sphere;
00023                 return _sphere;
00024             }
00025     };
00026 }
00027 #endif /* SPHERE_H_ */

Generated by  doxygen 1.6.2