summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
diff options
context:
space:
mode:
authorRafael Sachetto <[email protected]>2019-03-08 15:06:17 -0300
committerRafael Sachetto <[email protected]>2019-03-08 15:06:17 -0300
commit9f54a69cec1e6d2927e1998e75e316ce133e4669 (patch)
tree359075c694141cff90d83742146ff28f91060d81 /src/models.c
parent2f97a3f83531867511f65f2b2ed894706cfb2e06 (diff)
downloadraylib-9f54a69cec1e6d2927e1998e75e316ce133e4669.tar.gz
raylib-9f54a69cec1e6d2927e1998e75e316ce133e4669.zip
Adding DrawCubeWiresV for convenience
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c6
1 files changed, 6 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)