]> git.tdb.fi Git - gldbg.git/blob - flavors/gl/source/arraystate.h
Add a command to show current vertex array state
[gldbg.git] / flavors / gl / source / arraystate.h
1 #ifndef ARRAYSTATE_H_
2 #define ARRAYSTATE_H_
3
4 #include <string>
5 #include "autoconstptr.h"
6 #include "opengl.h"
7
8 struct BufferState;
9
10 struct ArrayState
11 {
12         GLenum kind;
13         unsigned index;
14         bool enabled;
15         unsigned size;
16         GLenum type;
17         bool normalized;
18         unsigned stride;
19         AutoConstPtr<BufferState> buffer;
20         long pointer;
21
22         ArrayState();
23         void set(unsigned, GLenum, bool, unsigned, BufferState *, long);
24         std::string describe() const;
25 };
26
27 #endif