First commit

This commit is contained in:
Joseph Ferano 2023-12-29 00:43:35 +07:00
commit 0f9ed29a01
7 changed files with 8752 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/main

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
CFLAGS=-g -Wall -Wextra -pedantic -O0
CC=gcc
.PHONY: build clean run all
all: main glowing_cube
main: main.c ./lib/libraylib.a
$(CC) $(CFLAGS) -Iinclude/ -lm main.c -o main ./lib/libraylib.a
run: main
./main
clean:
rm -vf main

1662
include/raylib.h Normal file

File diff suppressed because it is too large Load Diff

2190
include/raymath.h Normal file

File diff suppressed because it is too large Load Diff

4859
include/rlgl.h Normal file

File diff suppressed because it is too large Load Diff

BIN
lib/libraylib.a Normal file

Binary file not shown.

24
main.c Normal file
View File

@ -0,0 +1,24 @@
#include "raylib.h"
int main(void)
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
EndDrawing();
}
CloseWindow();
return 0;
}