#include <string>
#include <vector>
+#include "autoconstptr.h"
#include "opengl.h"
struct 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