BrushConstructor.h

Go to the documentation of this file.
00001 #ifndef BRUSHCONSTRUCTOR_H_
00002 #define BRUSHCONSTRUCTOR_H_
00003 
00004 #include <string>
00005 #include "../brush.h"
00006 #include "gtkutil/dialog.h"
00007 #include "radiant_i18n.h"
00008 #include "iradiant.h"
00009 
00010 namespace brushconstruct
00011 {
00012     class BrushConstructor
00013     {
00014         protected:
00015             float maxExtent (const Vector3& extents)
00016             {
00017                 return std::max(std::max(extents[0], extents[1]), extents[2]);
00018             }
00019 
00020         public:
00028             virtual void generate (Brush& brush, const AABB& bounds, std::size_t sides,
00029                     const TextureProjection& projection, const std::string& shader) = 0;
00030 
00031             virtual const std::string getName () const = 0;
00032     };
00033 }
00034 #endif /* BRUSHCONSTRUCTOR_H_ */

Generated by  doxygen 1.6.2