cache system add lonely functionnality

This commit is contained in:
arthur.jamet
2021-06-09 11:14:53 +02:00
parent aab9477571
commit 70524fa935
13 changed files with 46 additions and 27 deletions

View File

@@ -19,9 +19,9 @@ namespace RAY::Drawables::Drawables3D {
const RAY::Vector3 &scale,
const RAY::Vector3 &position,
const RAY::Vector3 &rotationAxis,
float rotationAngle)
float rotationAngle, bool lonely)
: ADrawable3D(position, WHITE),
_model(_modelsCache.fetch(filename)),
_model(_modelsCache.fetch(filename, lonely)),
_rotationAxis(rotationAxis),
_rotationAngle(rotationAngle),
_scale(scale)