debug color is now a memeber of the drawable 3D class

This commit is contained in:
arthur.jamet
2021-06-14 11:43:39 +02:00
parent ae68d5ab68
commit a3236ffba6
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -33,6 +33,6 @@ namespace RAY::Drawables::Drawables3D
void Cube::drawWiresOn(RAY::Window &) void Cube::drawWiresOn(RAY::Window &)
{ {
DrawCubeWiresV(this->_position, this->_dimensions, GREEN); DrawCubeWiresV(this->_position, this->_dimensions, this->_debugColor);
} }
} }
+1 -1
View File
@@ -55,6 +55,6 @@ namespace RAY::Drawables::Drawables3D
void Cylinder::drawWiresOn(RAY::Window &) void Cylinder::drawWiresOn(RAY::Window &)
{ {
DrawCylinderWires(this->_position, this->_topRadius, this->_bottomRadius, this->_height, 0, GREEN); DrawCylinderWires(this->_position, this->_topRadius, this->_bottomRadius, this->_height, 0, this->_debugColor);
} }
} }
+1 -1
View File
@@ -33,6 +33,6 @@ namespace RAY::Drawables::Drawables3D
void Sphere::drawWiresOn(RAY::Window &) void Sphere::drawWiresOn(RAY::Window &)
{ {
DrawSphereWires(this->_position, this->_radius, 10, 10, GREEN); DrawSphereWires(this->_position, this->_radius, 10, 10, this->_debugColor);
} }
} }
@@ -52,6 +52,9 @@ namespace RAY::Drawables {
//! @brief Color of the ADrawable //! @brief Color of the ADrawable
Color _color; Color _color;
//! @brief Color of the ADrawable's Debug
Color _debugColor = GREEN;
}; };
}; };
+1 -1
View File
@@ -124,7 +124,7 @@ namespace RAY::Drawables::Drawables3D
box.max.x += this->_position.x; box.max.x += this->_position.x;
box.max.y += this->_position.y; box.max.y += this->_position.y;
box.max.z += this->_position.z; box.max.z += this->_position.z;
DrawBoundingBox(box, GREEN); DrawBoundingBox(box, this->_debugColor);
} }
} }