X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fgraphicsbuffer.h;h=9513cb74a1842faa7a14eb1c241d0c96a503128e;hp=7cec235ec7484d1764e1918821edffcc9dc73e7a;hb=8942bd699d8e1ddede1127421ad18bed53232ff3;hpb=a851cf197844a2eb15fd5ee2c350ee296e415dca diff --git a/src/graphicsbuffer.h b/src/graphicsbuffer.h index 7cec235..9513cb7 100644 --- a/src/graphicsbuffer.h +++ b/src/graphicsbuffer.h @@ -7,7 +7,7 @@ namespace IPDF { - /* + /** * Implementation of an OpenGL buffer, with some extra cleverness. */ class GraphicsBuffer @@ -57,7 +57,7 @@ namespace IPDF void Bind() const; private: - void RecreateBuffer(); + bool RecreateBuffer(const void *data = nullptr); GLuint m_buffer_handle; BufferType m_buffer_type; BufferUsage m_buffer_usage; @@ -65,6 +65,7 @@ namespace IPDF size_t m_buffer_size; bool m_invalidated; bool m_buffer_shape_dirty; + bool m_faking_map; }; }