GraphicsBuffer();
~GraphicsBuffer();
+ void SetName(const char *name);
void SetType(BufferType bufType);
void SetUsage(BufferUsage bufUsage);
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;
bool m_invalidated;
bool m_buffer_shape_dirty;
bool m_faking_map;
+ const char *m_name;
};
}