X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fgraphicsbuffer.h;h=dd256178a48969948b227ccccc51fea82ac2d5d8;hp=47534c9b3cbb244f15f419fa0798d4abccbc4efc;hb=ddf7783ce69eb619f5a6b12e779c134279aa2ac6;hpb=eff96d65bd1101083e04cb3ff2468b3feea3ff9e diff --git a/src/graphicsbuffer.h b/src/graphicsbuffer.h index 47534c9..dd25617 100644 --- a/src/graphicsbuffer.h +++ b/src/graphicsbuffer.h @@ -2,8 +2,7 @@ #define _GRAPHICSBUFFER_H #include -#define GL_GLEXT_PROTOTYPES -#include +#include "gl_core44.h" namespace IPDF @@ -56,9 +55,9 @@ namespace IPDF void Invalidate(); - void Bind(); + void Bind() const; private: - void RecreateBuffer(); + bool RecreateBuffer(const void *data = nullptr); GLuint m_buffer_handle; BufferType m_buffer_type; BufferUsage m_buffer_usage; @@ -66,6 +65,7 @@ namespace IPDF size_t m_buffer_size; bool m_invalidated; bool m_buffer_shape_dirty; + bool m_faking_map; }; }