mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-22 22:45:48 +00:00
debug color is now a memeber of the drawable 3D class
This commit is contained in:
@@ -33,6 +33,6 @@ namespace RAY::Drawables::Drawables3D
|
||||
|
||||
void Cube::drawWiresOn(RAY::Window &)
|
||||
{
|
||||
DrawCubeWiresV(this->_position, this->_dimensions, GREEN);
|
||||
DrawCubeWiresV(this->_position, this->_dimensions, this->_debugColor);
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,6 @@ namespace RAY::Drawables::Drawables3D
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,6 @@ namespace RAY::Drawables::Drawables3D
|
||||
|
||||
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
|
||||
Color _color;
|
||||
|
||||
//! @brief Color of the ADrawable's Debug
|
||||
Color _debugColor = GREEN;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace RAY::Drawables::Drawables3D
|
||||
box.max.x += this->_position.x;
|
||||
box.max.y += this->_position.y;
|
||||
box.max.z += this->_position.z;
|
||||
DrawBoundingBox(box, GREEN);
|
||||
DrawBoundingBox(box, this->_debugColor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user