]> git.tdb.fi Git - gldbg.git/blob - source/bufferstate.h
Add classes to track OpenGL state and commands to inspect it
[gldbg.git] / source / bufferstate.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef BUFFERSTATE_H_
9 #define BUFFERSTATE_H_
10
11 #include <string>
12 #include <GL/gl.h>
13
14 struct BufferState
15 {
16         unsigned id;
17         GLenum usage;
18         unsigned size;
19         char *data;
20
21         BufferState();
22         void set_data(unsigned, const void *, GLenum);
23         void set_sub_data(unsigned, unsigned, const void *);
24         std::string describe() const;
25 };
26
27 #endif