diff options
author | Christian C <cc@localhost> | 2025-03-02 18:43:40 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-02 18:43:40 -0800 |
commit | 0f1d49179b5ff51bc3f00e4527c4010f09440b25 (patch) | |
tree | dd478ac8defca11ff76569b565b1949d47099286 /src/main.c | |
parent | a2daed4f50ffa8142b25cd040a1f25283fa88ace (diff) |
Iteration 1
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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; } |