X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fgeometrybuilder.h;fp=source%2Fgeometrybuilder.h;h=0000000000000000000000000000000000000000;hp=40bcd13e6b37b504d3c22ad3780ccce7a9b521b1;hb=7aaec9a70b8d7733429bec043f8e33e02956f266;hpb=bec07999d95b76f4b47cffcc564d0cd0afc0435e diff --git a/source/geometrybuilder.h b/source/geometrybuilder.h deleted file mode 100644 index 40bcd13e..00000000 --- a/source/geometrybuilder.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef MSP_GL_GEOMETRYBUILDER_H_ -#define MSP_GL_GEOMETRYBUILDER_H_ - -namespace Msp { -namespace GL { - -class Mesh; -class PrimitiveBuilder; - -class GeometryBuilder -{ -public: - enum TextureFit - { - STRETCH, - CROP, - WRAP - }; - -protected: - bool generate_tbn; - TextureFit tex_fit; - - GeometryBuilder(); - -public: - GeometryBuilder &tbn(bool = true); - GeometryBuilder &texture_fit(TextureFit); -protected: - void adjust_texture_scale(float &, float &, float, float) const; - -public: - virtual void build(PrimitiveBuilder &) const = 0; - void build(Mesh &) const; -}; - -} // namespace GL -} // namespace Msp - -#endif