From c3f3466bc48a0847dcbc87bba23090d4d4f7c490 Mon Sep 17 00:00:00 2001 From: rendo Date: Tue, 10 Mar 2026 09:42:01 +0500 Subject: [PATCH] Window creation --- main.cpp | 19 +++++++++++++++++++ makefile | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index cb3f748..8b44b01 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,22 @@ +#include + 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; } diff --git a/makefile b/makefile index 36263c7..1e472d0 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -CFLAGS=$(cat compiler_flags.txt//"\n"/" ") +CFLAGS=$(shell cat compiler_flags.txt) build/raylib-test-linux.x86_64 : main.cpp mkdir -p build