-/* $Id$
-
-This file is part of gldbg
-Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
#ifndef BUFFERSTATE_H_
#define BUFFERSTATE_H_
#include <string>
#include <vector>
+#include "autoconstptr.h"
#include "opengl.h"
struct ArrayState;
GLenum type;
int offset;
+ Array();
Array(const ArrayState &);
};
std::vector<Array> arrays;
BufferContent();
+
void update(const ArrayState &);
+ void update_elements(GLenum);
std::string describe() const;
};
BufferContent content;
BufferState();
+ ~BufferState();
+
void set_data(unsigned, const void *, GLenum);
void set_sub_data(unsigned, unsigned, const void *);
std::string describe() const;
};
+struct BufferBindingState
+{
+ AutoConstPtr<BufferState> buffer;
+ unsigned offset;
+ unsigned size;
+
+ BufferBindingState();
+};
+
#endif