1 #ifndef MSP_GL_GEOMETRYBUILDER_H_
2 #define MSP_GL_GEOMETRYBUILDER_H_
4 #include <msp/core/attributes.h>
10 class PrimitiveBuilder;
23 bool generate_tan = false;
24 TextureFit tex_fit = STRETCH;
26 GeometryBuilder() = default;
29 DEPRECATED GeometryBuilder &tbn(bool t = true) { return tangents(t); }
30 GeometryBuilder &tangents(bool = true);
31 GeometryBuilder &texture_fit(TextureFit);
33 void adjust_texture_scale(float &, float &, float, float) const;
36 virtual void build(PrimitiveBuilder &) const = 0;
37 void build(Mesh &) const;