add raylib and test window

This commit is contained in:
2025-11-08 10:01:49 +01:00
parent 724d1c9876
commit 12ea087cae
6 changed files with 1761 additions and 6 deletions

16
main.c
View File

@@ -9,6 +9,8 @@
* @license GNU GPL v3
*/
#include "raylib.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -41,5 +43,19 @@ int main(int argc, char* argv[])
print_datapoint_list(head);
// Raylib test window
SetTraceLogLevel(4);
const int screenWidth = 800;
const int screenHeight = 600;
InitWindow(screenWidth, screenHeight, "Raylib basic window");
SetTargetFPS(60);
while (!WindowShouldClose()) {
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("It works!", 20, 20, 20, BLACK);
EndDrawing();
}
CloseWindow();
return EXIT_SUCCESS;
}