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