Added 'C_C++/raylib_hw.cpp'
This commit is contained in:
parent
dc6962a534
commit
12f8f2147a
17
C_C++/raylib_hw.cpp
Normal file
17
C_C++/raylib_hw.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// @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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user