Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/VertexBuffer.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | public: | ||||
size_t GetVertexSize() const { return m_VertexSize; } | size_t GetVertexSize() const { return m_VertexSize; } | ||||
size_t GetBytesReserved() const; | size_t GetBytesReserved() const; | ||||
size_t GetBytesAllocated() const; | size_t GetBytesAllocated() const; | ||||
/// Returns true if this vertex buffer is compatible with the specified vertex type and intended usage. | /// Returns true if this vertex buffer is compatible with the specified vertex type and intended usage. | ||||
bool CompatibleVertexType(size_t vertexSize, GLenum usage, GLenum target) const; | bool CompatibleVertexType(size_t vertexSize, GLenum usage, GLenum target) const; | ||||
void DumpStatus(); | void DumpStatus() const; | ||||
/** | /** | ||||
* Given the usage flags of a buffer that has been (or will be) allocated: | * Given the usage flags of a buffer that has been (or will be) allocated: | ||||
* | * | ||||
* If true, we assume the buffer is going to be modified on every frame, | * If true, we assume the buffer is going to be modified on every frame, | ||||
* so we will re-upload the entire buffer every frame using glMapBuffer. | * so we will re-upload the entire buffer every frame using glMapBuffer. | ||||
* This requires the buffer's owner to hold onto its backing store. | * This requires the buffer's owner to hold onto its backing store. | ||||
* | * | ||||
Show All 39 Lines |
Wildfire Games · Phabricator