X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometrybuilder.h;h=76c1ba2f603a670861768ebf9b4ff37be1352cc3;hb=e4638ccfdcdb58f81740fe707ec93b1be3208d2c;hp=a0538b5933fe163b6ef04085b1dedfc32e402385;hpb=bbfb79181f716736df413f463b55825866400ed8;p=libs%2Fgl.git diff --git a/source/geometrybuilder.h b/source/geometrybuilder.h index a0538b59..76c1ba2f 100644 --- a/source/geometrybuilder.h +++ b/source/geometrybuilder.h @@ -1,10 +1,3 @@ -/* $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_ @@ -20,7 +13,7 @@ public: enum TextureFit { STRETCH, - CUT, + CROP, WRAP }; @@ -35,7 +28,10 @@ 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; };