X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fgeometrybuilder.h;h=40bcd13e6b37b504d3c22ad3780ccce7a9b521b1;hp=2e5a79faa06096c6ca6a129409b1df4909eb11b9;hb=HEAD;hpb=aa9884e69bc543682d1fe36ec5d054fdf11bcfac diff --git a/source/geometrybuilder.h b/source/geometrybuilder.h deleted file mode 100644 index 2e5a79fa..00000000 --- a/source/geometrybuilder.h +++ /dev/null @@ -1,49 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_GEOMETRYBUILDER_H_ -#define MSP_GL_GEOMETRYBUILDER_H_ - -namespace Msp { -namespace GL { - -class Mesh; -class PrimitiveBuilder; - -class GeometryBuilder -{ -public: - enum TextureFit - { - STRETCH, - CUT, - WRAP - }; - -protected: - int tangent_attr; - int binormal_attr; - TextureFit tex_fit; - - GeometryBuilder(); - -public: - GeometryBuilder &tangent(unsigned); - GeometryBuilder &binormal(unsigned); - 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