X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbuilders%2Fgeometrybuilder.h;h=04b262519a8f4075310d04f0eb17cb5f031daa4f;hp=40bcd13e6b37b504d3c22ad3780ccce7a9b521b1;hb=c8520aa336e92f2eaf9a38c3430c608520a90324;hpb=7aaec9a70b8d7733429bec043f8e33e02956f266 diff --git a/source/builders/geometrybuilder.h b/source/builders/geometrybuilder.h index 40bcd13e..04b26251 100644 --- a/source/builders/geometrybuilder.h +++ b/source/builders/geometrybuilder.h @@ -1,6 +1,8 @@ #ifndef MSP_GL_GEOMETRYBUILDER_H_ #define MSP_GL_GEOMETRYBUILDER_H_ +#include + namespace Msp { namespace GL { @@ -18,13 +20,14 @@ public: }; protected: - bool generate_tbn; - TextureFit tex_fit; + bool generate_tan = false; + TextureFit tex_fit = STRETCH; - GeometryBuilder(); + GeometryBuilder() = default; public: - GeometryBuilder &tbn(bool = true); + DEPRECATED GeometryBuilder &tbn(bool t = true) { return tangents(t); } + GeometryBuilder &tangents(bool = true); GeometryBuilder &texture_fit(TextureFit); protected: void adjust_texture_scale(float &, float &, float, float) const;