aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-02 18:43:40 -0800
committerChristian C <cc@localhost>2025-03-02 18:43:40 -0800
commit0f1d49179b5ff51bc3f00e4527c4010f09440b25 (patch)
treedd478ac8defca11ff76569b565b1949d47099286 /src/main.c
parenta2daed4f50ffa8142b25cd040a1f25283fa88ace (diff)
Iteration 1
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e5f6d08..f1af48d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,8 +1,33 @@
#include <stdio.h>
#include <stdlib.h>
+#include <raylib.h>
+
+#include <lib/lib.h>
+
int main()
{
- printf("Success!\n");
+ SetConfigFlags(FLAG_WINDOW_RESIZABLE);
+ const char* gui_title = "Image Manip - Useful for segmentations!";
+ InitWindow(SCREEN_WIDTH, SCREEN_HEIGHT, gui_title);
+
+ SetTargetFPS(60);
+ Camera2D camera = { 0 };
+ camera.zoom = 1.0f;
+
+ while (!WindowShouldClose()) {
+ //-----------------------------------------------
+ //-DRAWING---------------------------------------
+ //-----------------------------------------------
+ BeginDrawing();
+ ClearBackground(RAYWHITE);
+ BeginMode2D(camera);
+ EndMode2D();
+ DrawText("Image Manip", 0, 0, 0, DARKGRAY);
+ EndDrawing();
+ //-----------------------------------------------
+ }
+
+ CloseWindow();
return 0;
}