Window creation

This commit is contained in:
rendo 2026-03-10 09:42:01 +05:00
commit c3f3466bc4
2 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,22 @@
#include <raylib.h>
int main() { int main() {
const int screen_height = 720;
const int screen_width = 1280;
InitWindow(screen_width, screen_height, "Test game");
SetTargetFPS(60);
while (WindowShouldClose() == false) {
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats to me, I created first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
return 0; return 0;
} }

View file

@ -1,4 +1,4 @@
CFLAGS=$(cat compiler_flags.txt//"\n"/" ") CFLAGS=$(shell cat compiler_flags.txt)
build/raylib-test-linux.x86_64 : main.cpp build/raylib-test-linux.x86_64 : main.cpp
mkdir -p build mkdir -p build