summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorHorrowind <[email protected]>2021-10-12 19:36:06 +0200
committerGitHub <[email protected]>2021-10-12 19:36:06 +0200
commit526e68afa83a38d19daf517d9864642299e711b9 (patch)
tree677eea0dbfbd2b7d5eb4ce0b1cf1f8cb204d17d9 /src/raylib.h
parent1b91ac0b0d78d10605a892c62914169865c2a138 (diff)
downloadraylib-526e68afa83a38d19daf517d9864642299e711b9.tar.gz
raylib-526e68afa83a38d19daf517d9864642299e711b9.zip
Add DrawCylinder(Wires)Ex (#2049)
* Add DrawCylinderEx and DrawCylinderWiresEx * Modify examples/models/models_geometric_shapes.c to show the usage of DrawCylinder(Wires)Ex * Simplified DrawCylinder and DrawCylinderWires to use the -Ex versions. * This reverts commits f49b2598dd3bfc3219d414f24558c68f7ebe9eb5 and 4542b32e4ece9ddae775e7395d4219fa148039a8. * Fixed formatting. Renamed base_angle to baseAngle. Remove most of the raymath.h calls. Co-authored-by: Horrowind <[email protected]>
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 7bcb39e3..3ef4133e 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1384,7 +1384,9 @@ RLAPI void DrawSphere(Vector3 centerPos, float radius, Color color);
RLAPI void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color); // Draw sphere with extended parameters
RLAPI void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color); // Draw sphere wires
RLAPI void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); // Draw a cylinder/cone
+RLAPI void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); // Draw a cylinder with base at startPos and top at endPos
RLAPI void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color); // Draw a cylinder/cone wires
+RLAPI void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); // Draw a cylinder wires with base at startPos and top at endPos
RLAPI void DrawPlane(Vector3 centerPos, Vector2 size, Color color); // Draw a plane XZ
RLAPI void DrawRay(Ray ray, Color color); // Draw a ray line
RLAPI void DrawGrid(int slices, float spacing); // Draw a grid (centered at (0, 0, 0))