]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/arraystate.h
Move the profiler and inspector tools to the gl flavor
[gldbg.git] / flavors / gl / source / arraystate.h
diff --git a/flavors/gl/source/arraystate.h b/flavors/gl/source/arraystate.h
new file mode 100644 (file)
index 0000000..d755297
--- /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 "opengl.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