]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/arraystate.h
Add a command to show current vertex array state
[gldbg.git] / flavors / gl / source / arraystate.h
index af4abd442d88bc46ce0cd7960d4f22f2074e28c6..c1bd0189f34804f518ac964e1b1c440ce4370d21 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef ARRAYSTATE_H_
 #define ARRAYSTATE_H_
 
+#include <string>
+#include "autoconstptr.h"
 #include "opengl.h"
 
 struct BufferState;
@@ -14,11 +16,12 @@ struct ArrayState
        GLenum type;
        bool normalized;
        unsigned stride;
-       BufferState *buffer;
+       AutoConstPtr<BufferState> buffer;
        long pointer;
 
        ArrayState();
        void set(unsigned, GLenum, bool, unsigned, BufferState *, long);
+       std::string describe() const;
 };
 
 #endif