X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=flavors%2Fgl%2Fsource%2Fbufferstate.h;h=6cff3feaf55d2f8f20d85cbd1211c9cbd27d3926;hb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;hp=5557a5669754d11eccd1e29037e27b1f3ed60b69;hpb=76324b7394d25ba654e938eb33ee985532df7cc6;p=gldbg.git diff --git a/flavors/gl/source/bufferstate.h b/flavors/gl/source/bufferstate.h index 5557a56..6cff3fe 100644 --- a/flavors/gl/source/bufferstate.h +++ b/flavors/gl/source/bufferstate.h @@ -1,15 +1,9 @@ -/* $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 #include +#include "autoconstptr.h" #include "opengl.h" struct ArrayState; @@ -33,6 +27,7 @@ struct BufferContent std::vector arrays; BufferContent(); + void update(const ArrayState &); void update_elements(GLenum); std::string describe() const; @@ -48,9 +43,20 @@ struct BufferState 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 buffer; + unsigned offset; + unsigned size; + + BufferBindingState(); +}; + #endif