|
@@ -4,20 +4,22 @@ import raylib;
|
|
|
|
|
|
void main()
|
|
|
{
|
|
|
- writeln("Starting a raylib example.");
|
|
|
+ writeln("Starting a raylib example.");
|
|
|
|
|
|
SetTargetFPS(60);
|
|
|
InitWindow(800, 640, "Hello, World!");
|
|
|
- scope(exit) CloseWindow(); // see https://dlang.org/spec/statement.html#scope-guard-statement
|
|
|
+ scope (exit)
|
|
|
+ CloseWindow(); // see https://dlang.org/spec/statement.html#scope-guard-statement
|
|
|
|
|
|
while (!WindowShouldClose())
|
|
|
{
|
|
|
BeginDrawing();
|
|
|
- scope(exit) EndDrawing();
|
|
|
+ scope (exit)
|
|
|
+ EndDrawing();
|
|
|
|
|
|
ClearBackground(RAYWHITE);
|
|
|
DrawText("Hello, World!", 330, 300, 28, BLACK);
|
|
|
}
|
|
|
|
|
|
- writeln("Ending a raylib example.");
|
|
|
+ writeln("Ending a raylib example.");
|
|
|
}
|