2023-05-10 21:26:53 +00:00
|
|
|
const screenWidth = 800;
|
|
|
|
const screenHeight = 450;
|
2023-05-06 21:43:40 +00:00
|
|
|
|
2023-05-21 20:32:50 +00:00
|
|
|
initWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
|
2023-05-09 21:25:28 +00:00
|
|
|
|
2023-05-21 20:32:50 +00:00
|
|
|
setTargetFPS(60);
|
|
|
|
while (!windowShouldClose())
|
2023-05-10 21:26:53 +00:00
|
|
|
{
|
2023-05-21 20:32:50 +00:00
|
|
|
beginDrawing();
|
2023-05-01 16:24:56 +00:00
|
|
|
|
2023-05-21 20:32:50 +00:00
|
|
|
clearBackground(RAYWHITE);
|
2023-05-10 21:26:53 +00:00
|
|
|
|
2023-05-21 20:32:50 +00:00
|
|
|
drawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
|
2023-05-10 21:26:53 +00:00
|
|
|
|
2023-05-21 20:32:50 +00:00
|
|
|
endDrawing();
|
2023-05-10 21:26:53 +00:00
|
|
|
}
|
2023-05-21 20:32:50 +00:00
|
|
|
closeWindow();
|