First commit
This commit is contained in:
commit
0f9ed29a01
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/main
|
16
Makefile
Normal file
16
Makefile
Normal 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
1662
include/raylib.h
Normal file
File diff suppressed because it is too large
Load Diff
2190
include/raymath.h
Normal file
2190
include/raymath.h
Normal file
File diff suppressed because it is too large
Load Diff
4859
include/rlgl.h
Normal file
4859
include/rlgl.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
lib/libraylib.a
Normal file
BIN
lib/libraylib.a
Normal file
Binary file not shown.
24
main.c
Normal file
24
main.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user