From 53978c1878176ae21856e6b111d76dd1a80ecbca Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Sun, 27 Oct 2019 11:28:56 +0200 Subject: Make it work and add an example --- examples/hello.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/hello.nim (limited to 'examples') diff --git a/examples/hello.nim b/examples/hello.nim new file mode 100644 index 0000000..e1c8d54 --- /dev/null +++ b/examples/hello.nim @@ -0,0 +1,14 @@ +import raylib/raylib + +InitWindow(800, 600, "basic example") + +SetTargetFPS(60) + +while not WindowShouldClose(): + BeginDrawing() + + ClearBackground(White) + + DrawText("Hello World!", 100, 100, 20, Black) + + EndDrawing() -- cgit v1.2.3