]> git.tdb.fi Git - gldbg.git/blob - source/arraystate.h
Track vertex array state
[gldbg.git] / source / arraystate.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2010  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef ARRAYSTATE_H_
9 #define ARRAYSTATE_H_
10
11 #include <GL/gl.h>
12
13 struct BufferState;
14
15 struct ArrayState
16 {
17         GLenum kind;
18         unsigned index;
19         bool enabled;
20         unsigned size;
21         GLenum type;
22         bool normalized;
23         unsigned stride;
24         BufferState *buffer;
25         long pointer;
26
27         ArrayState();
28         void set(unsigned, GLenum, bool, unsigned, BufferState *, long);
29 };
30
31 #endif