aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-03-13 09:42:56 +0100
committerGitHub <noreply@github.com>2019-03-13 09:42:56 +0100
commitb6dd31c65357bfea0f801374b84e1a3546abd6cc (patch)
tree7227a9624adf5bf368eb0e07fd25bb851ee194d9 /src
parent32e6a419c1938234d1f0ea70ee2abd4f0640784e (diff)
parent9f54a69cec1e6d2927e1998e75e316ce133e4669 (diff)
downloadraylib-b6dd31c65357bfea0f801374b84e1a3546abd6cc.tar.gz
raylib-b6dd31c65357bfea0f801374b84e1a3546abd6cc.zip
Merge pull request #775 from rsachetto/master
Adding DrawCubeWiresV for convenience
Diffstat (limited to 'src')
-rw-r--r--src/models.c6
-rw-r--r--src/raylib.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c
index b261f58d..a5dbf5e7 100644
--- a/src/models.c
+++ b/src/models.c
@@ -285,6 +285,12 @@ void DrawCubeWires(Vector3 position, float width, float height, float length, Co
rlPopMatrix();
}
+// Draw cube wires (vector version)
+void DrawCubeWiresV(Vector3 position, Vector3 size, Color color)
+{
+ DrawCubeWires(position, size.x, size.y, size.z, color);
+}
+
// Draw cube
// NOTE: Cube position is the center position
void DrawCubeTexture(Texture2D texture, Vector3 position, float width, float height, float length, Color color)
diff --git a/src/raylib.h b/src/raylib.h
index cc461204..ccdb4aab 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1207,6 +1207,7 @@ RLAPI void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, floa
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)
RLAPI void DrawCubeWires(Vector3 position, float width, float height, float length, Color color); // Draw cube wires
+RLAPI void DrawCubeWiresV(Vector3 position, Vector3 size, Color color); // Draw cube wires (Vector version)
RLAPI void DrawCubeTexture(Texture2D texture, Vector3 position, float width, float height, float length, Color color); // Draw cube textured
RLAPI void DrawSphere(Vector3 centerPos, float radius, Color color); // Draw sphere
RLAPI void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color); // Draw sphere with extended parameters