Simple hello world in raylib, with a Makefile to do the compilation for me!
27 lines
461 B
C
27 lines
461 B
C
/* main.c
|
|
* Created: 2023-08-25
|
|
* Author: Aryadev Chavali
|
|
* Description: Entry point of program
|
|
*/
|
|
#include <stdio.h>
|
|
|
|
#include <raylib.h>
|
|
|
|
#define WIDTH 512
|
|
#define HEIGHT 512
|
|
|
|
int main(void)
|
|
{
|
|
InitWindow(WIDTH, HEIGHT, "Abelian sand pile");
|
|
SetTargetFPS(60);
|
|
while (!WindowShouldClose())
|
|
{
|
|
BeginDrawing();
|
|
ClearBackground(BLACK);
|
|
DrawText("Hello, world!", 100, 100, 25, RAYWHITE);
|
|
EndDrawing();
|
|
}
|
|
CloseWindow();
|
|
return 0;
|
|
}
|