Make Qt4 work
[ipdf/code.git] / src / graphicsbuffer.h
index 4665345..4053f90 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _GRAPHICSBUFFER_H
 #define _GRAPHICSBUFFER_H
 
-#include <SDL.h>
+#include "SDL.h"
 #include "gl_core44.h"
 
 
@@ -40,6 +40,7 @@ namespace IPDF
                GraphicsBuffer();
                ~GraphicsBuffer();
                
+               void SetName(const char *name);
                void SetType(BufferType bufType);
                void SetUsage(BufferUsage bufUsage);
                
@@ -63,6 +64,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;
@@ -73,6 +75,7 @@ namespace IPDF
                bool m_invalidated;
                bool m_buffer_shape_dirty;
                bool m_faking_map;
+               const char *m_name;
        };
 
 }

UCC git Repository :: git.ucc.asn.au