mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 07:48:15 +00:00
Added color to DrawBoundigBox()
This commit is contained in:
@@ -1213,7 +1213,7 @@ void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vec
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw a bounding box with wires
|
// Draw a bounding box with wires
|
||||||
void DrawBoundingBox(BoundingBox box)
|
void DrawBoundingBox(BoundingBox box, Color color)
|
||||||
{
|
{
|
||||||
Vector3 size;
|
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 };
|
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
|
// Detect collision between two spheres
|
||||||
|
@@ -760,7 +760,7 @@ void DrawModel(Model model, Vector3 position, float scale, Color tint);
|
|||||||
void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); // Draw a model with extended parameters
|
void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); // Draw a model with extended parameters
|
||||||
void DrawModelWires(Model model, Vector3 position, float scale, Color color); // Draw a model wires (with texture if set)
|
void DrawModelWires(Model model, Vector3 position, float scale, Color color); // Draw a model wires (with texture if set)
|
||||||
void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); // Draw a model wires (with texture if set) with extended parameters
|
void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); // Draw a model wires (with texture if set) with extended parameters
|
||||||
void DrawBoundingBox(BoundingBox box); // Draw bounding box (wires)
|
void DrawBoundingBox(BoundingBox box, Color color) // Draw bounding box (wires)
|
||||||
|
|
||||||
void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size, Color tint); // Draw a billboard texture
|
void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size, Color tint); // Draw a billboard texture
|
||||||
void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint); // Draw a billboard texture defined by sourceRec
|
void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vector3 center, float size, Color tint); // Draw a billboard texture defined by sourceRec
|
||||||
|
Reference in New Issue
Block a user