aboutsummaryrefslogtreecommitdiff
path: root/examples/models_obj_loading.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2014-09-29 23:41:05 +0200
committerraysan5 <raysan5@gmail.com>2014-09-29 23:41:05 +0200
commit51688c004cb9b41cd573b7f84ce8574ca2a4b9d7 (patch)
tree1d8bf01ec8deb3acabb747182f2a1384cec2ec49 /examples/models_obj_loading.c
parente2ff32eb847f0332d546f51c442f336e0dc7b309 (diff)
downloadraylib-51688c004cb9b41cd573b7f84ce8574ca2a4b9d7.tar.gz
raylib-51688c004cb9b41cd573b7f84ce8574ca2a4b9d7.zip
Code cleaning, removed useless spaces
Diffstat (limited to 'examples/models_obj_loading.c')
-rw-r--r--examples/models_obj_loading.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/models_obj_loading.c b/examples/models_obj_loading.c
index 3c2da62f..fd3b6959 100644
--- a/examples/models_obj_loading.c
+++ b/examples/models_obj_loading.c
@@ -28,9 +28,9 @@ int main()
SetModelTexture(&cat, texture); // Bind texture to model
Vector3 catPosition = { 0.0, 0.0, 0.0 }; // Set model position
- SetTargetFPS(60); // Set our game to run at 60 frames-per-second
+ SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
-
+
// Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key
{
@@ -41,25 +41,25 @@ int main()
if (IsKeyDown(KEY_UP)) catPosition.z -= 0.2;
if (IsKeyDown(KEY_DOWN)) catPosition.z += 0.2;
//----------------------------------------------------------------------------------
-
+
// Draw
//----------------------------------------------------------------------------------
BeginDrawing();
-
+
ClearBackground(RAYWHITE);
-
+
Begin3dMode(camera);
-
+
DrawModel(cat, catPosition, 0.1f, WHITE); // Draw 3d model with texture
DrawGrid(10.0, 1.0); // Draw a grid
-
+
DrawGizmo(catPosition); // Draw gizmo
-
+
End3dMode();
-
+
DrawFPS(10, 10);
-
+
EndDrawing();
//----------------------------------------------------------------------------------
}
@@ -68,9 +68,9 @@ int main()
//--------------------------------------------------------------------------------------
UnloadTexture(texture); // Unload texture
UnloadModel(cat); // Unload model
-
+
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------
-
+
return 0;
} \ No newline at end of file