29 #ifndef __GL3PlusDefaultHardwareBufferManager_H__
30 #define __GL3PlusDefaultHardwareBufferManager_H__
46 void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
48 void unlockImpl(
void);
57 void readData(
size_t offset,
size_t length,
void* pDest);
59 void writeData(
size_t offset,
size_t length,
const void* pSource,
60 bool discardWholeBuffer =
false);
62 void* lock(
size_t offset,
size_t length,
LockOptions options);
66 void*
getDataPtr(
size_t offset)
const {
return (
void*)(mData + offset); }
75 void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
77 void unlockImpl(
void);
82 void readData(
size_t offset,
size_t length,
void* pDest);
84 void writeData(
size_t offset,
size_t length,
const void* pSource,
85 bool discardWholeBuffer =
false);
87 void* lock(
size_t offset,
size_t length,
LockOptions options);
91 void*
getDataPtr(
size_t offset)
const {
return (
void*)(mData + offset); }
100 void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
102 void unlockImpl(
void);
110 void readData(
size_t offset,
size_t length,
void* pDest);
112 void writeData(
size_t offset,
size_t length,
const void* pSource,
113 bool discardWholeBuffer =
false);
115 void* lock(
size_t offset,
size_t length,
LockOptions options);
119 void*
getDataPtr(
size_t offset)
const {
return (
void*)(mData + offset); }
128 void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
130 void unlockImpl(
void);
137 void readData(
size_t offset,
size_t length,
void* pDest);
139 void writeData(
size_t offset,
size_t length,
const void* pSource,
140 bool discardWholeBuffer =
false);
142 void* lock(
size_t offset,
size_t length,
LockOptions options);
146 void*
getDataPtr(
size_t offset)
const {
return (
void*)(mData + offset); }
163 createVertexBuffer(
size_t vertexSize,
size_t numVerts,
void * getDataPtr(size_t offset) const
Shared pointer implementation used to share index buffers.
Specialisation of HardwareBuffer for a vertex buffer.
Specialisation of HardwareBufferManager to emulate hardware buffers.
Singleton wrapper for hardware buffer manager.
Specialisation of HardwareBuffer for vertex index buffers, still abstract.
Specialisation of HardwareCounterBuffer for emulation.
GL3PlusDefaultHardwareBufferManager()
Specialisation of HardwareIndexBuffer for emulation.
void * getDataPtr(size_t offset) const
Shared pointer implementation used to share counter buffers.
Specialisation of HardwareBuffer for a counter buffer.
Shared pointer implementation used to share vertex buffers.
Base definition of a hardware buffer manager.
#define _OgreGL3PlusExport
Usage
Enums describing buffer usage; not mutually exclusive.
Specialisation of HardwareVertexBuffer for emulation.
LockOptions
Locking options.
Reference-counted shared pointer, used for objects where implicit destruction is required.
~GL3PlusDefaultHardwareBufferManager()
GL3PlusDefaultHardwareBufferManagerBase as a Singleton.
void * getDataPtr(size_t offset) const