]> git.tdb.fi Git - gldbg.git/blobdiff - source/arraystate.h
Track vertex array state
[gldbg.git] / source / arraystate.h
diff --git a/source/arraystate.h b/source/arraystate.h
new file mode 100644 (file)
index 0000000..2a0f6d5
--- /dev/null
@@ -0,0 +1,31 @@
+/* $Id$
+
+This file is part of gldbg
+Copyright © 2010  Mikko Rasa, Mikkosoft Productions
+Distributed under the GPL
+*/
+
+#ifndef ARRAYSTATE_H_
+#define ARRAYSTATE_H_
+
+#include <GL/gl.h>
+
+struct BufferState;
+
+struct ArrayState
+{
+       GLenum kind;
+       unsigned index;
+       bool enabled;
+       unsigned size;
+       GLenum type;
+       bool normalized;
+       unsigned stride;
+       BufferState *buffer;
+       long pointer;
+
+       ArrayState();
+       void set(unsigned, GLenum, bool, unsigned, BufferState *, long);
+};
+
+#endif