mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
player models are now independant
This commit is contained in:
@@ -14,12 +14,12 @@ namespace RAY::Drawables::Drawables3D {
|
||||
|
||||
RAY::Cache<::Model> Model::_modelsCache(LoadModel, UnloadModel);
|
||||
|
||||
Model::Model(const std::string &filename,
|
||||
Model::Model(const std::string &filename, bool lonely,
|
||||
std::optional<std::pair<MaterialType, std::string>> texture,
|
||||
const RAY::Vector3 &scale,
|
||||
const RAY::Vector3 &position,
|
||||
const RAY::Vector3 &rotationAxis,
|
||||
float rotationAngle, bool lonely)
|
||||
float rotationAngle)
|
||||
: ADrawable3D(position, WHITE),
|
||||
_model(_modelsCache.fetch(filename, lonely)),
|
||||
_rotationAxis(rotationAxis),
|
||||
|
||||
Reference in New Issue
Block a user