aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2017-03-05 21:05:17 +0100
committerraysan5 <raysan5@gmail.com>2017-03-05 21:05:17 +0100
commitb734802743f2089c8d649b27aea48ab71fa653b3 (patch)
treeaf87165723ac563ee1a7e1c605c7a4df821d74ea /examples
parent59038bae96bf8e9ae96ce3432ddbde96590f4642 (diff)
downloadraylib-b734802743f2089c8d649b27aea48ab71fa653b3.tar.gz
raylib-b734802743f2089c8d649b27aea48ab71fa653b3.zip
Revert test code...
Diffstat (limited to 'examples')
-rw-r--r--examples/core_basic_window.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/examples/core_basic_window.c b/examples/core_basic_window.c
index 888f3460..fb83400a 100644
--- a/examples/core_basic_window.c
+++ b/examples/core_basic_window.c
@@ -39,11 +39,6 @@ int main()
// Update
//----------------------------------------------------------------------------------
// TODO: Update your variables here
- float dx = 600 - 100;
- float dy = 105 - 405;
-
- float d = sqrtf(dx*dx + dy*dy);
- float angle = asinf(dy/d);
//----------------------------------------------------------------------------------
// Draw
@@ -52,22 +47,7 @@ int main()
ClearBackground(RAYWHITE);
- //DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
-
- DrawRectangle(100, 400, 1, 10, BLACK);
- DrawRectangle(96, 404, 10, 1, BLACK);
-
- DrawRectangle(600, 100, 1, 10, BLACK);
- DrawRectangle(596, 104, 10, 1, BLACK);
-
- DrawLine(100, 405, 600, 105, RED);
-
- // Draw lines using textures
- /*
- DrawTexturePro(GetDefaultTexture(), (Rectangle){ 0, 0, GetDefaultTexture().width, GetDefaultTexture().height },
- (Rectangle){ 100, 405, (float)GetDefaultTexture().width*d, 1 },
- (Vector2){ 0, (float)GetDefaultTexture().height/2 }, -RAD2DEG*angle, BLUE);
- */
+ DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------