]> git.tdb.fi Git - libs/gl.git/blobdiff - source/buffer.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / buffer.cpp
index b4b71c3a0130efadcaea894f0fd921b9e833629b..17ae494f72dc37a0892fdf282af33665d8723c49 100644 (file)
@@ -31,7 +31,7 @@ Buffer::~Buffer()
 void Buffer::bind(BufferType t) const
 {
        glBindBufferARB(t, id);
-       binding(t)=this;
+       binding(t) = this;
 }
 
 void Buffer::maybe_bind() const
@@ -42,7 +42,7 @@ void Buffer::maybe_bind() const
 
 void Buffer::set_usage(BufferUsage u)
 {
-       usage=u;
+       usage = u;
 }
 
 void Buffer::data(unsigned size, const void *d)
@@ -59,11 +59,11 @@ void Buffer::sub_data(unsigned offset, unsigned size, const void *d)
 
 void Buffer::unbind(BufferType type)
 {
-       const Buffer *&ptr=binding(type);
+       const Buffer *&ptr = binding(type);
        if(ptr)
        {
                glBindBufferARB(type, 0);
-               ptr=0;
+               ptr = 0;
        }
 }
 
@@ -79,7 +79,7 @@ const Buffer *&Buffer::binding(BufferType type)
        }
 }
 
-const Buffer *Buffer::bound[4]={ 0, 0, 0, 0 };
+const Buffer *Buffer::bound[4] = { 0, 0, 0, 0 };
 
 } // namespace GL
 } // namespace Msp