Adding DrawCubeWiresV for convenience

This commit is contained in:
Rafael Sachetto 2019-03-08 15:06:17 -03:00
parent 2f97a3f835
commit 9f54a69cec
2 changed files with 7 additions and 0 deletions

View file

@ -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)