diff options
| author | raysan5 <[email protected]> | 2021-10-17 21:00:20 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-17 21:00:20 +0200 |
| commit | cf12992b6a3bdf1f5332111708aa0200525cc60a (patch) | |
| tree | 70d3e92415c077e626607ee321e7326f123cbe95 /examples/models | |
| parent | 67a1e84859f903adb0b1d1ab0605c472d31dab8a (diff) | |
| download | raylib-cf12992b6a3bdf1f5332111708aa0200525cc60a.tar.gz raylib-cf12992b6a3bdf1f5332111708aa0200525cc60a.zip | |
Remove trailing spaces
Diffstat (limited to 'examples/models')
| -rw-r--r-- | examples/models/models_animation.c | 2 | ||||
| -rw-r--r-- | examples/models/models_loading_vox.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/models/models_animation.c b/examples/models/models_animation.c index 6386ad76..0a375c90 100644 --- a/examples/models/models_animation.c +++ b/examples/models/models_animation.c @@ -46,7 +46,7 @@ int main(void) Vector3 position = { 0.0f, 0.0f, 0.0f }; // Set model position // Load animation data - int animsCount = 0; + unsigned int animsCount = 0; ModelAnimation *anims = LoadModelAnimations("resources/models/iqm/guyanim.iqm", &animsCount); int animFrameCounter = 0; diff --git a/examples/models/models_loading_vox.c b/examples/models/models_loading_vox.c index c693861e..7836cdd3 100644 --- a/examples/models/models_loading_vox.c +++ b/examples/models/models_loading_vox.c @@ -23,7 +23,7 @@ int main(void) //-------------------------------------------------------------------------------------- const int screenWidth = 800; const int screenHeight = 450; - + const char *voxFileNames[] = { "resources/models/vox/chr_knight.vox", "resources/models/vox/chr_sword.vox", @@ -31,7 +31,7 @@ int main(void) }; InitWindow(screenWidth, screenHeight, "raylib [models] example - magicavoxel loading"); - + // Define the camera to look into our 3d world Camera camera = { 0 }; camera.position = (Vector3){ 10.0f, 10.0f, 10.0f }; // Camera position @@ -52,7 +52,7 @@ int main(void) TraceLog(LOG_WARNING, TextFormat("[%s] File loaded in %.3f ms", voxFileNames[i], t1 - t0)); - // Compute model translation matrix to center model on draw position (0, 0 , 0) + // Compute model translation matrix to center model on draw position (0, 0 , 0) BoundingBox bb = GetModelBoundingBox(models[i]); Vector3 center = { 0 }; center.x = bb.min.x + (((bb.max.x - bb.min.x)/2)); @@ -68,7 +68,7 @@ int main(void) SetTargetFPS(60); // Set our game to run at 60 frames-per-second //-------------------------------------------------------------------------------------- - + // Main game loop while (!WindowShouldClose()) // Detect window close button or ESC key { @@ -77,7 +77,7 @@ int main(void) UpdateCamera(&camera); // Update our camera to orbit // Cycle between models on mouse click - if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) currentModel = (currentModel + 1)%MAX_VOX_FILES; + if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) currentModel = (currentModel + 1)%MAX_VOX_FILES; // Cycle between models on key pressed if (IsKeyPressed(KEY_RIGHT)) @@ -91,13 +91,13 @@ int main(void) if (currentModel < 0) currentModel = MAX_VOX_FILES - 1; } //---------------------------------------------------------------------------------- - + // Draw //---------------------------------------------------------------------------------- BeginDrawing(); ClearBackground(RAYWHITE); - + // Draw 3D model BeginMode3D(camera); |
