X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farraystate.h;fp=source%2Farraystate.h;h=2a0f6d5cd0cd46dc4ed937ff34a8771735c6d1d9;hb=9cdca19aa017ea1711436977855e885d91e78ab0;hp=0000000000000000000000000000000000000000;hpb=64592975a49e2bd26a561f36425071427f37d5fb;p=gldbg.git diff --git a/source/arraystate.h b/source/arraystate.h new file mode 100644 index 0000000..2a0f6d5 --- /dev/null +++ b/source/arraystate.h @@ -0,0 +1,31 @@ +/* $Id$ + +This file is part of gldbg +Copyright © 2010 Mikko Rasa, Mikkosoft Productions +Distributed under the GPL +*/ + +#ifndef ARRAYSTATE_H_ +#define ARRAYSTATE_H_ + +#include + +struct BufferState; + +struct ArrayState +{ + GLenum kind; + unsigned index; + bool enabled; + unsigned size; + GLenum type; + bool normalized; + unsigned stride; + BufferState *buffer; + long pointer; + + ArrayState(); + void set(unsigned, GLenum, bool, unsigned, BufferState *, long); +}; + +#endif