From 7e7939e1ad1b9576dc518e0fadbf4a3c1eb989df Mon Sep 17 00:00:00 2001 From: ianband <32182222+IanBand@users.noreply.github.com> Date: Mon, 17 Oct 2022 02:36:53 -0700 Subject: Add DrawCapsule(Wires) (#2761) * Add DrawCapsule & DrawCapsuleWires * Add DrawCapsule & DrawCapsuleWires to example Co-authored-by: Ian Band --- examples/models/models_geometric_shapes.c | 3 +++ examples/models/models_geometric_shapes.png | Bin 33973 -> 22450 bytes 2 files changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/models/models_geometric_shapes.c b/examples/models/models_geometric_shapes.c index 294c8825..90261ad2 100644 --- a/examples/models/models_geometric_shapes.c +++ b/examples/models/models_geometric_shapes.c @@ -66,6 +66,9 @@ int main(void) DrawCylinder((Vector3){1.0f, 0.0f, -4.0f}, 0.0f, 1.5f, 3.0f, 8, GOLD); DrawCylinderWires((Vector3){1.0f, 0.0f, -4.0f}, 0.0f, 1.5f, 3.0f, 8, PINK); + DrawCapsule ((Vector3){-3.0f, 1.5f, -4.0f}, (Vector3){-4.0f, -1.0f, -4.0f}, 1.2f, 8, 8, VIOLET); + DrawCapsuleWires((Vector3){-3.0f, 1.5f, -4.0f}, (Vector3){-4.0f, -1.0f, -4.0f}, 1.2f, 8, 8, PURPLE); + DrawGrid(10, 1.0f); // Draw a grid EndMode3D(); diff --git a/examples/models/models_geometric_shapes.png b/examples/models/models_geometric_shapes.png index 6076b429..765abe19 100644 Binary files a/examples/models/models_geometric_shapes.png and b/examples/models/models_geometric_shapes.png differ -- cgit v1.2.3