mirror of
https://github.com/chemistry-software/game-premake.git
synced 2026-11-07 09:07:36 +00:00
32 lines
526 B
C++
32 lines
526 B
C++
/*
|
|
Raylib example file.
|
|
This is an example main file for a simple raylib project.
|
|
Use this as a starting point or replace it with your code.
|
|
|
|
For a C++ project simply rename the file to .cpp and run premake
|
|
|
|
*/
|
|
|
|
#include "raylib.h"
|
|
|
|
int main ()
|
|
{
|
|
// set up the window
|
|
InitWindow(1280, 800, "Hello Raylib");
|
|
|
|
// game loop
|
|
while (!WindowShouldClose())
|
|
{
|
|
// drawing
|
|
BeginDrawing();
|
|
ClearBackground(BLACK);
|
|
|
|
DrawText("Hello Raylib", 200,200,20,WHITE);
|
|
|
|
EndDrawing();
|
|
}
|
|
|
|
// cleanup
|
|
CloseWindow();
|
|
return 0;
|
|
} |