22 lines
No EOL
415 B
C
22 lines
No EOL
415 B
C
#include "raylib.h"
|
|
|
|
int main()
|
|
{
|
|
int screenWidth = 800;
|
|
int screenHeight = 450;
|
|
InitWindow(
|
|
screenWidth, screenHeight, "raylib [core] example - basic window");
|
|
SetTargetFPS(60);
|
|
|
|
// Main game loop
|
|
while (!WindowShouldClose())
|
|
{
|
|
BeginDrawing();
|
|
ClearBackground(RAYWHITE);
|
|
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
|
|
EndDrawing();
|
|
}
|
|
CloseWindow();
|
|
|
|
return 0;
|
|
} |