summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-29 12:21:22 +0100
committerRay <[email protected]>2020-01-29 12:21:22 +0100
commit4992edab247079b7c8e840b0f1210114849303db (patch)
tree6af178fa2a96a1b49cd45ce391f10865426f33d2
parentaf3df8bdd6e10a155c28b27001a75366fe171619 (diff)
downloadraylib-4992edab247079b7c8e840b0f1210114849303db.tar.gz
raylib-4992edab247079b7c8e840b0f1210114849303db.zip
ADDED: DrawPoint3D()
-rw-r--r--src/models.c2
-rw-r--r--src/raylib.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c
index 96620434..93fc2330 100644
--- a/src/models.c
+++ b/src/models.c
@@ -110,7 +110,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
rlEnd();
}
-// Draw a point in 3D space--actually a small line.
+// Draw a point in 3D space, actually a small line
void DrawPoint3D(Vector3 position, Color color)
{
if (rlCheckBufferLimit(8)) rlglDraw();
diff --git a/src/raylib.h b/src/raylib.h
index 97e37057..fbfc5006 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1234,6 +1234,7 @@ RLAPI const char *CodepointToUtf8(int codepoint, int *byteLength); // Encode
// Basic geometric 3D shapes drawing functions
RLAPI void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color); // Draw a line in 3D world space
+RLAPI void DrawPoint3D(Vector3 position, Color color); // Draw a point in 3D space, actually a small line
RLAPI void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color); // Draw a circle in 3D world space
RLAPI void DrawCube(Vector3 position, float width, float height, float length, Color color); // Draw cube
RLAPI void DrawCubeV(Vector3 position, Vector3 size, Color color); // Draw cube (Vector version)