summaryrefslogtreecommitdiffhomepage
path: root/examples/models
diff options
context:
space:
mode:
authorianband <[email protected]>2022-10-17 02:36:53 -0700
committerGitHub <[email protected]>2022-10-17 11:36:53 +0200
commit7e7939e1ad1b9576dc518e0fadbf4a3c1eb989df (patch)
treee6e01dcd0ee4a10d1abe779194c72e5fc8f3a8e1 /examples/models
parentc5e89241c515d12a739a0d0bacb6a05395bf2a95 (diff)
downloadraylib-7e7939e1ad1b9576dc518e0fadbf4a3c1eb989df.tar.gz
raylib-7e7939e1ad1b9576dc518e0fadbf4a3c1eb989df.zip
Add DrawCapsule(Wires) (#2761)
* Add DrawCapsule & DrawCapsuleWires * Add DrawCapsule & DrawCapsuleWires to example Co-authored-by: Ian Band <[email protected]>
Diffstat (limited to 'examples/models')
-rw-r--r--examples/models/models_geometric_shapes.c3
-rw-r--r--examples/models/models_geometric_shapes.pngbin33973 -> 22450 bytes
2 files changed, 3 insertions, 0 deletions
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
--- a/examples/models/models_geometric_shapes.png
+++ b/examples/models/models_geometric_shapes.png
Binary files differ