X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fgeometrybuilder.cpp;h=729b40facc1709ddecc794aa2637c65ac1bdd391;hp=327e8fcf8a3b56b4daa35b8bf20727bc6f7c6ad6;hb=HEAD;hpb=df6f8f1f26b1f230dcb1d626d278c43fd48d468d diff --git a/source/geometrybuilder.cpp b/source/geometrybuilder.cpp deleted file mode 100644 index 327e8fcf..00000000 --- a/source/geometrybuilder.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "geometrybuilder.h" -#include "meshbuilder.h" - -namespace Msp { -namespace GL { - -GeometryBuilder::GeometryBuilder(): - tangent_attr(-1), - binormal_attr(-1), - tex_fit(STRETCH) -{ } - -GeometryBuilder &GeometryBuilder::tangent(unsigned t) -{ - tangent_attr = t; - return *this; -} - -GeometryBuilder &GeometryBuilder::binormal(unsigned b) -{ - binormal_attr = b; - return *this; -} - -GeometryBuilder &GeometryBuilder::texture_fit(TextureFit tf) -{ - tex_fit = tf; - return *this; -} - -void GeometryBuilder::adjust_texture_scale(float &u_scale, float &v_scale, float width, float height) const -{ - if(tex_fit!=STRETCH) - { - if((width