Preview example and font...
This commit is contained in:
parent
b8bcd7014f
commit
2eafb4d323
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
*.o
|
*.o
|
||||||
*.ali
|
*.ali
|
||||||
window
|
window
|
||||||
|
preview
|
||||||
|
@ -8,6 +8,11 @@ gnatmake -c window.adb
|
|||||||
gnatbind window.ali
|
gnatbind window.ali
|
||||||
gnatlink window.ali -lraylib
|
gnatlink window.ali -lraylib
|
||||||
|
|
||||||
|
gnatmake -c preview.adb
|
||||||
|
gnatbind preview.ali
|
||||||
|
gnatlink preview.ali -lraylib
|
||||||
|
|
||||||
mv window ../window
|
mv window ../window
|
||||||
|
mv preview ../preview
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
@ -1,18 +1,24 @@
|
|||||||
with Raylib;
|
with Raylib;
|
||||||
use Raylib;
|
use Raylib;
|
||||||
|
|
||||||
procedure Window is
|
procedure Preview is
|
||||||
|
|
||||||
|
Map : Texture := No_Texture;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Open_Window (1280, 720, "Pandemos Empire" & ASCII.NUL);
|
Open_Window (1280, 720, "Pandemos Empire" & ASCII.NUL);
|
||||||
--
|
--
|
||||||
|
Map := Load_Texture ("./example/resource/pandemos.png" & ASCII.NUL);
|
||||||
|
--
|
||||||
Main_Loop: loop
|
Main_Loop: loop
|
||||||
exit when Window_Should_Close;
|
exit when Window_Should_Close;
|
||||||
--
|
--
|
||||||
Begin_Drawing;
|
Begin_Drawing;
|
||||||
Clear_Background;
|
Draw_Texture (Map);
|
||||||
End_Drawing;
|
End_Drawing;
|
||||||
end loop Main_Loop;
|
end loop Main_Loop;
|
||||||
--
|
--
|
||||||
|
Unload_Texture (Map);
|
||||||
|
--
|
||||||
Close_Window;
|
Close_Window;
|
||||||
end Window;
|
end Preview;
|
BIN
example/resource/alagard.png
Normal file
BIN
example/resource/alagard.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Loading…
Reference in New Issue
Block a user