]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove alignment where it doesn't belong
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:37:01 +0000 (00:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:37:01 +0000 (00:37 +0300)
source/extension.cpp
source/meshbuilder.h
source/texture2d.h
source/vertexarray.h
source/vertexarraybuilder.h

index c846c59d72398dc0c1cbdbf59d03859871cc3ca2..bc43ae8bbbee902533c24a8c05b071aed1eb2b41 100644 (file)
@@ -39,7 +39,7 @@ bool is_supported(const string &ext)
                }
 
                /* XXX Conceptually a bit weird place for this, but I couldn't really come up
-                  with anything better that would still be transparent. */
+               with anything better that would still be transparent. */
                if(extensions.count("GL_ARB_shader_objects"))
                        init_arb_shader_objects();
                if(extensions.count("GL_ARB_vertex_shader"))
index d34da63b0123ab645363059f9918fb436b17bda9..0755eeb20ba6096d1bf524279194eb7d97940a3b 100644 (file)
@@ -12,7 +12,7 @@ class Mesh;
 class MeshBuilder: public PrimitiveBuilder
 {
 private:
-       Mesh  &mesh;
+       Mesh &mesh;
        Batch *batch;
 
 public:
index 35346e0091e2bbc8a24bf827bec4a96d921cbbd8..994c4efd7224c43605ec0f6097483124e809db35 100644 (file)
@@ -66,7 +66,7 @@ private:
        void image(const Graphics::Image &);
 
 public:
-       unsigned get_width() const  { return width; }
+       unsigned get_width() const { return width; }
        unsigned get_height() const { return height; }
 
 private:
index 039dfa8b13ea3ed467dcdf3825b0ddaa64b825cf..7e6d04f5a05aab16c15d6dfb980748f93235cef0 100644 (file)
@@ -58,16 +58,16 @@ public:
 
        const VertexFormat &get_format() const { return format; }
        const std::vector<float> &get_data() const { return data; }
-       void         use_vertex_buffer();
-       void         use_vertex_buffer(Buffer *);
-       void         reserve(unsigned);
-       unsigned     size() const { return data.size()/stride; }
-       void         clear();
-       void         reset(const VertexFormat &);
-       void         apply() const;
-       float        *append();
+       void use_vertex_buffer();
+       void use_vertex_buffer(Buffer *);
+       void reserve(unsigned);
+       unsigned size() const { return data.size()/stride; }
+       void clear();
+       void reset(const VertexFormat &);
+       void apply() const;
+       float *append();
        float *modify(unsigned);
-       const float  *operator[](unsigned i) const { return &data[0]+i*stride; }
+       const float *operator[](unsigned i) const { return &data[0]+i*stride; }
 
 private:
        void set_dirty();
index b956660f00c7df775a10120b9779732327f053f3..575a47535e9a22ecc5bf5bad91e5343a836790d3 100644 (file)
@@ -13,7 +13,7 @@ class VertexArray;
 class VertexArrayBuilder: public VertexBuilder
 {
 private:
-       VertexArray  &array;
+       VertexArray &array;
 
        VertexArrayBuilder(const VertexArrayBuilder &);
 public: