X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=flavors%2Fgl%2Fsource%2Fbufferstate.h;h=18013a77dfb29445ee20271ada9543eaa6ca42f0;hb=73d29911044cfffdc7edad50aeb2a8d1175ecd11;hp=c3f504bf593ab5416bf95170a903424b69fbc5a7;hpb=f53057ce9b5eb3c7256a4aca95b4944733e14503;p=gldbg.git diff --git a/flavors/gl/source/bufferstate.h b/flavors/gl/source/bufferstate.h index c3f504b..18013a7 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; @@ -24,6 +18,7 @@ struct BufferContent GLenum type; int offset; + Array(); Array(const ArrayState &); }; @@ -33,6 +28,7 @@ struct BufferContent BufferContent(); void update(const ArrayState &); + void update_elements(GLenum); std::string describe() const; }; @@ -51,4 +47,13 @@ struct BufferState std::string describe() const; }; +struct BufferBindingState +{ + AutoConstPtr buffer; + unsigned offset; + unsigned size; + + BufferBindingState(); +}; + #endif