void Buffer::bind(BufferType t) const
{
glBindBufferARB(t, id);
- binding(t)=this;
+ binding(t) = this;
}
void Buffer::maybe_bind() const
void Buffer::set_usage(BufferUsage u)
{
- usage=u;
+ usage = u;
}
void Buffer::data(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;
}
}
}
}
-const Buffer *Buffer::bound[4]={ 0, 0, 0, 0 };
+const Buffer *Buffer::bound[4] = { 0, 0, 0, 0 };
} // namespace GL
} // namespace Msp