3 This file is part of libmspgl
4 Copyright © 2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #include "geometrybuilder.h"
9 #include "meshbuilder.h"
14 GeometryBuilder::GeometryBuilder():
20 GeometryBuilder &GeometryBuilder::tangent(unsigned t)
26 GeometryBuilder &GeometryBuilder::binormal(unsigned b)
32 GeometryBuilder &GeometryBuilder::texture_fit(TextureFit tf)
38 void GeometryBuilder::adjust_texture_scale(float &u_scale, float &v_scale, float width, float height) const
42 if((width<height)==(tex_fit==CUT))
43 u_scale *= width/height;
45 v_scale *= height/width;
49 void GeometryBuilder::build(Mesh &mesh) const
51 MeshBuilder builder(mesh);