18 lines
419 B
C++
18 lines
419 B
C++
// @BAKE g++ $@ -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
|
#include "raylib.h"
|
|
|
|
int main(void) {
|
|
InitWindow(800, 450, "raylib [core] example - basic window");
|
|
|
|
while (!WindowShouldClose()) {
|
|
BeginDrawing();
|
|
ClearBackground(RAYWHITE);
|
|
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
|
|
EndDrawing();
|
|
}
|
|
|
|
CloseWindow();
|
|
|
|
return 0;
|
|
}
|