From 0f1d49179b5ff51bc3f00e4527c4010f09440b25 Mon Sep 17 00:00:00 2001 From: Christian C Date: Sun, 2 Mar 2025 18:43:40 -0800 Subject: Iteration 1 --- src/lib/lib.c | 5 +++-- src/main.c | 27 ++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/lib.c b/src/lib/lib.c index ea971fd..c1f26fc 100644 --- a/src/lib/lib.c +++ b/src/lib/lib.c @@ -1,3 +1,4 @@ -#include +#include -const uint32_t SIZE = 5; +const uint32_t SCREEN_WIDTH = 640; +const uint32_t SCREEN_HEIGHT = 480; 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 #include +#include + +#include + 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; } -- cgit v1.2.1