git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make project relevant to Mechatronics
[ipdf/code.git]
/
src
/
graphicsbuffer.h
diff --git
a/src/graphicsbuffer.h
b/src/graphicsbuffer.h
index
fd89771
..
4053f90
100644
(file)
--- a/
src/graphicsbuffer.h
+++ b/
src/graphicsbuffer.h
@@
-40,6
+40,7
@@
namespace IPDF
GraphicsBuffer();
~GraphicsBuffer();
GraphicsBuffer();
~GraphicsBuffer();
+ void SetName(const char *name);
void SetType(BufferType bufType);
void SetUsage(BufferUsage bufUsage);
void SetType(BufferType bufType);
void SetUsage(BufferUsage bufUsage);
@@
-63,6
+64,7
@@
namespace IPDF
GLuint GetHandle() const { return m_buffer_handle; }
void Bind() const;
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;
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;
bool m_invalidated;
bool m_buffer_shape_dirty;
bool m_faking_map;
+ const char *m_name;
};
}
};
}
UCC
git Repository :: git.ucc.asn.au