]> git.tdb.fi Git - libs/gl.git/blobdiff - source/geometrybuilder.h
Check for OES_mapbuffer in Buffer::unmap
[libs/gl.git] / source / geometrybuilder.h
index 2e5a79faa06096c6ca6a129409b1df4909eb11b9..40bcd13e6b37b504d3c22ad3780ccce7a9b521b1 100644 (file)
@@ -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,20 +13,18 @@ public:
        enum TextureFit
        {
                STRETCH,
-               CUT,
+               CROP,
                WRAP
        };
 
 protected:
-       int tangent_attr;
-       int binormal_attr;
+       bool generate_tbn;
        TextureFit tex_fit;
 
        GeometryBuilder();
 
 public:
-       GeometryBuilder &tangent(unsigned);
-       GeometryBuilder &binormal(unsigned);
+       GeometryBuilder &tbn(bool = true);
        GeometryBuilder &texture_fit(TextureFit);
 protected:
        void adjust_texture_scale(float &, float &, float, float) const;