23 using std::make_unique;
27 using std::unique_ptr;
45 SceneLibrary::SceneLibrary(
Scene* scene)
68 prototypes.push_back(unique_ptr<Prototype>(prototype));
79 auto prototype = prototypeByIdIt->second;
Representation of a 3D model.
Axis aligned bounding box used for frustum, this is not directly connectable with physics engine.
Prototype bounding volume definition.
void setId(int id)
Set Id.
Scene prototype library definition.
vector< unique_ptr< Prototype > > prototypes
void removePrototype(int id)
Remove a prototype.
~SceneLibrary()
Destructor.
int allocatePrototypeId()
Allocata a unique prototype index.
unordered_map< int, Prototype * > prototypesById
void clear()
Clears this scene prototype library.
void addPrototype(Prototype *prototype)
Add a prototype.
static constexpr int ID_ALLOCATE
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Helper class to create models from physics primitive bounding volumes.