aboutsummaryrefslogtreecommitdiff
path: root/src/models.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-03-01 20:26:01 +0100
committerraysan5 <raysan5@gmail.com>2016-03-01 20:26:01 +0100
commit6106ab8a2eda76454b0cd3ff46a079896a90eee8 (patch)
treeebe7e7a497497e23892ca97f6c9da2ed5e8eacaf /src/models.c
parent1674465bdc17f522013c5552bd154f04254d8e74 (diff)
downloadraylib-6106ab8a2eda76454b0cd3ff46a079896a90eee8.tar.gz
raylib-6106ab8a2eda76454b0cd3ff46a079896a90eee8.zip
Added color to DrawBoundigBox()
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models.c b/src/models.c
index 4eb2e104..a3649a07 100644
--- a/src/models.c
+++ b/src/models.c
@@ -1213,7 +1213,7 @@ void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vec
}
// Draw a bounding box with wires
-void DrawBoundingBox(BoundingBox box)
+void DrawBoundingBox(BoundingBox box, Color color)
{
Vector3 size;
@@ -1223,7 +1223,7 @@ void DrawBoundingBox(BoundingBox box)
Vector3 center = { box.min.x + size.x/2.0f, box.min.y + size.y/2.0f, box.min.z + size.z/2.0f };
- DrawCubeWires(center, size.x, size.y, size.z, GREEN);
+ DrawCubeWires(center, size.x, size.y, size.z, color);
}
// Detect collision between two spheres