18 lines
324 B
Lua
18 lines
324 B
Lua
|
setmetatable(_G, { __index = rl })
|
||
|
|
||
|
SetConfigFlags(FLAG_VSYNC_HINT)
|
||
|
SetTargetFPS(60)
|
||
|
|
||
|
InitWindow(800, 450, "raylib [lua] example - global api")
|
||
|
|
||
|
while not WindowShouldClose() do
|
||
|
BeginDrawing()
|
||
|
|
||
|
ClearBackground(RAYWHITE)
|
||
|
DrawText("Global API !", 350, 200, 20, LIGHTGRAY)
|
||
|
|
||
|
EndDrawing()
|
||
|
end
|
||
|
|
||
|
CloseWindow()
|