TDME2 1.9.121
|
VBO manager. More...
#include <tdme/engine/subsystems/manager/VBOManager.h>
Public Member Functions | |
VBOManager (Renderer *renderer) | |
Public constructor. More... | |
~VBOManager () | |
Destructor. More... | |
VBOManager_VBOManaged * | addVBO (const string &vboId, int32_t ids, bool useGPUMemory, bool shared, bool &created) |
Adds a VBO to manager or retrieve VBO if existing. More... | |
VBOManager_VBOManaged * | getVBO (const string &vboId) |
Retrieves a VBO managed from manager. More... | |
void | removeVBO (const string &vboId) |
Removes a VBO from manager. More... | |
Private Attributes | |
Renderer * | renderer { nullptr } |
unordered_map< string, VBOManager_VBOManaged * > | vbos |
ReadWriteLock | rwLock |
Friends | |
class | VBOManager_VBOManaged |
VBOManager | ( | Renderer * | renderer | ) |
Public constructor.
Definition at line 21 of file VBOManager.cpp.
~VBOManager | ( | ) |
Destructor.
Definition at line 25 of file VBOManager.cpp.
VBOManager_VBOManaged * addVBO | ( | const string & | vboId, |
int32_t | ids, | ||
bool | useGPUMemory, | ||
bool | shared, | ||
bool & | created | ||
) |
Adds a VBO to manager or retrieve VBO if existing.
vboId | VBO id |
ids | VBOs to allocate |
useGPUMemory | use GPU memory |
shared | shared between different threads |
created | returns if VBO was just created |
Definition at line 31 of file VBOManager.cpp.
VBOManager_VBOManaged * getVBO | ( | const string & | vboId | ) |
Retrieves a VBO managed from manager.
vboId | VBO id |
Definition at line 57 of file VBOManager.cpp.
void removeVBO | ( | const string & | vboId | ) |
|
friend |
Definition at line 26 of file VBOManager.h.
|
private |
Definition at line 29 of file VBOManager.h.
|
private |
Definition at line 31 of file VBOManager.h.
|
private |
Definition at line 30 of file VBOManager.h.