diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:17:19 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-23 17:17:19 -0700 |
commit | 569a833ec9d18c5ad82d2334ec2c72ec01a5e460 (patch) | |
tree | d0eb1c47c3335726ea1aab18508a45ecae44983d | |
parent | f439828dc068974ddc161cc3469ac489a93bbabc (diff) |
Fixed the ifdef for drawModelWireFrame
-rw-r--r-- | src/util.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -94,10 +94,7 @@ void drawModelWireframe(Model model, Vector3 position, Quaternion rotation, Colo // DrawModelWires doesn't work on the version of opengl that web assembly uses. // Instead I use this stupid peice of shit. -#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33) - model.transform = QuaternionToMatrix(rotation); - DrawModelWires(model, position, 1.0, color); -#else +#ifdef PLATFORM_WEB for (int i = 0; i < model.meshCount; ++i) { Mesh mesh = model.meshes[i]; @@ -121,5 +118,9 @@ void drawModelWireframe(Model model, Vector3 position, Quaternion rotation, Colo DrawLine3D(triangle[2], triangle[0], color); } } +#else + model.transform = QuaternionToMatrix(rotation); + DrawModelWires(model, position, 1.0, color); #endif } + |