X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fgraphicsbuffer.h;h=b102c5195e94abe197d81d233403e0621dd48808;hp=466534531d8e5ab1b665d37aa5414a6e2e71de38;hb=ac518ad085eb5bc84647e4aebe0c5ff06640cd0d;hpb=f71f97f4fd251d02882ace4be3ead033ced434c4;ds=sidebyside diff --git a/src/graphicsbuffer.h b/src/graphicsbuffer.h index 4665345..b102c51 100644 --- a/src/graphicsbuffer.h +++ b/src/graphicsbuffer.h @@ -1,7 +1,7 @@ #ifndef _GRAPHICSBUFFER_H #define _GRAPHICSBUFFER_H -#include +#include "SDL.h" #include "gl_core44.h" @@ -63,6 +63,7 @@ namespace IPDF GLuint GetHandle() const { return m_buffer_handle; } void Bind() const; + void BindRange(size_t start, size_t size) const; private: bool RecreateBuffer(const void *data = NULL); GLuint m_buffer_handle;