]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/bufferstate.h
Track uniform buffer bindings
[gldbg.git] / flavors / gl / source / bufferstate.h
index 5557a5669754d11eccd1e29037e27b1f3ed60b69..18013a77dfb29445ee20271ada9543eaa6ca42f0 100644 (file)
@@ -1,15 +1,9 @@
-/* $Id$
-
-This file is part of gldbg
-Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
 #ifndef BUFFERSTATE_H_
 #define BUFFERSTATE_H_
 
 #include <string>
 #include <vector>
+#include "autoconstptr.h"
 #include "opengl.h"
 
 struct ArrayState;
@@ -53,4 +47,13 @@ struct BufferState
        std::string describe() const;
 };
 
+struct BufferBindingState
+{
+       AutoConstPtr<BufferState> buffer;
+       unsigned offset;
+       unsigned size;
+
+       BufferBindingState();
+};
+
 #endif