player models are now independant

This commit is contained in:
arthur.jamet
2021-06-10 09:58:52 +02:00
parent ad7b10e687
commit 0ad827c37b
5 changed files with 19 additions and 19 deletions

View File

@@ -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),