![]() |
RigsofRods
Soft-body Physics Simulation
|
#include <ProceduralManager.h>
Public Member Functions | |
virtual | ~ProceduralManager () override |
void | addObject (ProceduralObjectPtr po) |
Generates road mesh and adds to internal list. More... | |
void | removeObject (ProceduralObjectPtr po) |
Clears road mesh and removes from internal list. More... | |
int | getNumObjects () |
ProceduralObjectPtr | getObject (int pos) |
void | logDiagnostics () |
void | removeAllObjects () |
![]() | |
RefCountingObject () | |
virtual | ~RefCountingObject () |
void | AddRef () |
void | Release () |
Private Member Functions | |
void | updateObject (ProceduralObjectPtr po) |
Rebuilds the road mesh. More... | |
void | deleteObject (ProceduralObjectPtr po) |
Deletes the road mesh. More... | |
Private Attributes | |
std::vector< ProceduralObjectPtr > | pObjects |
Additional Inherited Members | |
![]() | |
static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
![]() | |
int | m_refcount |
std::mutex | m_refcount_mtx |
Definition at line 79 of file ProceduralManager.h.
|
overridevirtual |
Definition at line 64 of file ProceduralManager.cpp.
void ProceduralManager::addObject | ( | ProceduralObjectPtr | po | ) |
Generates road mesh and adds to internal list.
Definition at line 169 of file ProceduralManager.cpp.
|
private |
Deletes the road mesh.
Definition at line 90 of file ProceduralManager.cpp.
|
inline |
ProceduralObjectPtr ProceduralManager::getObject | ( | int | pos | ) |
void ProceduralManager::logDiagnostics | ( | ) |
Definition at line 175 of file ProceduralManager.cpp.
void ProceduralManager::removeAllObjects | ( | ) |
Definition at line 81 of file ProceduralManager.cpp.
void ProceduralManager::removeObject | ( | ProceduralObjectPtr | po | ) |
Clears road mesh and removes from internal list.
Definition at line 99 of file ProceduralManager.cpp.
|
private |
Rebuilds the road mesh.
Definition at line 110 of file ProceduralManager.cpp.
|
private |
Definition at line 104 of file ProceduralManager.h.