raylib-ada/example/preview.adb

24 lines
428 B
Ada
Raw Normal View History

2024-04-23 11:35:35 -04:00
with Raylib;
use Raylib;
2024-04-23 11:44:25 -04:00
procedure Preview is
Map : Texture := No_Texture;
2024-04-23 11:35:35 -04:00
begin
Open_Window (1280, 720, "Pandemos Empire" & ASCII.NUL);
--
2024-04-23 11:44:25 -04:00
Map := Load_Texture ("./example/resource/pandemos.png" & ASCII.NUL);
--
2024-04-23 12:15:11 -04:00
while not Window_Should_Close
loop
2024-04-23 11:35:35 -04:00
Begin_Drawing;
2024-04-23 11:44:25 -04:00
Draw_Texture (Map);
2024-04-23 11:35:35 -04:00
End_Drawing;
end loop Main_Loop;
--
2024-04-23 11:44:25 -04:00
Unload_Texture (Map);
--
2024-04-23 11:35:35 -04:00
Close_Window;
2024-04-23 11:44:25 -04:00
end Preview;