1/*******************************************************************************************
2*
3* raylib [core] example - Basic window
4*
5* Welcome to raylib!
6*
7* To test examples in Notepad++, provided with default raylib installer package,
8* just press F6 and run [raylib_compile_execute] script, it will compile and execute.
9* Note that compiled executable is placed in the same folder as .c file
10*
11* You can find all basic examples on [C:\raylib\raylib\examples] directory and
12* raylib official webpage: [www.raylib.com]
13*
14* Enjoy using raylib. :)
15*
16* This example has been created using raylib 1.0 (www.raylib.com)
17* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
18*
19* Copyright (c) 2013-2020 Ramon Santamaria (@raysan5)
20*
21********************************************************************************************/
22
23#include "raylib.h"
24
25int main(void)
26{
27 // Initialization
28 //--------------------------------------------------------------------------------------
29 const int screenWidth = 800;
30 const int screenHeight = 450;
31
32 InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
33
34 SetTargetFPS(60); // Set our game to run at 60 frames-per-second
35 //--------------------------------------------------------------------------------------
36
37 // Main game loop
38 while (!WindowShouldClose()) // Detect window close button or ESC key
39 {
40 // Update
41 //----------------------------------------------------------------------------------
42 // TODO: Update your variables here
43 //----------------------------------------------------------------------------------
44
45 // Draw
46 //----------------------------------------------------------------------------------
47 BeginDrawing();
48
49 ClearBackground(RAYWHITE);
50
51 DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
52
53 EndDrawing();
54 //----------------------------------------------------------------------------------
55 }
56
57 // De-Initialization
58 //--------------------------------------------------------------------------------------
59 CloseWindow(); // Close window and OpenGL context
60 //--------------------------------------------------------------------------------------
61
62 return 0;
63}