]> 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 d7552973238eab8f2878b8589795e2fc0672d0f2..c1bd0189f34804f518ac964e1b1c440ce4370d21 100644 (file)
@@ -1,13 +1,8 @@
-/* $Id$
-
-This file is part of gldbg
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
 #ifndef ARRAYSTATE_H_
 #define ARRAYSTATE_H_
 
+#include <string>
+#include "autoconstptr.h"
 #include "opengl.h"
 
 struct BufferState;
@@ -21,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