19 lines
469 B
Lua
19 lines
469 B
Lua
local width, height = 800, 450
|
|
|
|
rl.SetConfigFlags(rl.FLAG_VSYNC_HINT)
|
|
rl.InitWindow(800, 450, "raylib [shapes] example - basic shapes drawing")
|
|
|
|
local logo = rl.LoadTexture "ressources/logo.png"
|
|
|
|
while not rl.WindowShouldClose() do
|
|
rl.BeginDrawing()
|
|
rl.ClearBackground(rl.RAYWHITE)
|
|
|
|
rl.DrawTexture(logo, width/2 - logo.width/2, height/2 - logo.height/2, rl.WHITE)
|
|
rl.DrawText("this is a texture!", 350, 370, 10, rl.GRAY)
|
|
|
|
rl.EndDrawing()
|
|
end
|
|
|
|
rl.CloseWindow()
|