Window creation
This commit is contained in:
parent
c4fc4b2a65
commit
c3f3466bc4
2 changed files with 20 additions and 1 deletions
19
main.cpp
19
main.cpp
|
|
@ -1,3 +1,22 @@
|
||||||
|
#include <raylib.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
const int screen_height = 720;
|
||||||
|
const int screen_width = 1280;
|
||||||
|
|
||||||
|
InitWindow(screen_width, screen_height, "Test game");
|
||||||
|
|
||||||
|
SetTargetFPS(60);
|
||||||
|
|
||||||
|
while (WindowShouldClose() == false) {
|
||||||
|
BeginDrawing();
|
||||||
|
|
||||||
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
|
DrawText("Congrats to me, I created first window!", 190, 200, 20, LIGHTGRAY);
|
||||||
|
|
||||||
|
EndDrawing();
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
makefile
2
makefile
|
|
@ -1,4 +1,4 @@
|
||||||
CFLAGS=$(cat compiler_flags.txt//"\n"/" ")
|
CFLAGS=$(shell cat compiler_flags.txt)
|
||||||
|
|
||||||
build/raylib-test-linux.x86_64 : main.cpp
|
build/raylib-test-linux.x86_64 : main.cpp
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue