diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-02 18:59:18 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-02 18:59:18 +0100 |
commit | aab3db7f321067b8ff14d589119936d3cbbfc2b0 (patch) | |
tree | 8d88fae5bba6cbde7b7ba91d0a40a23c63202350 /main.c | |
download | oreobrot-aab3db7f321067b8ff14d589119936d3cbbfc2b0.tar.gz oreobrot-aab3db7f321067b8ff14d589119936d3cbbfc2b0.tar.bz2 oreobrot-aab3db7f321067b8ff14d589119936d3cbbfc2b0.zip |
INITIAL COMMIT
Simple hello world in raylib
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +/* main.c + * Created: 2023-09-02 + * Author: Aryadev Chavali + * Description: Entrypoint of program + */ + +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> + +#include <raylib.h> +#include <raymath.h> + +#define WIDTH 512 +#define HEIGHT 512 + +int main(void) +{ + InitWindow(WIDTH, HEIGHT, "Mandelbrot simulation"); + for (size_t ticks = 0; !WindowShouldClose(); ++ticks) + { + BeginDrawing(); + ClearBackground(BLACK); + DrawText("Hello, world!", 100, 100, 50, RAYWHITE); + EndDrawing(); + } + CloseWindow(); + return 0; +} |