Kaynağa Gözat

Preview example and font...

master
Ognjen Milan Robovic 3 hafta önce
ebeveyn
işleme
2eafb4d323
4 değiştirilmiş dosya ile 15 ekleme ve 3 silme
  1. +1
    -0
      .gitignore
  2. +5
    -0
      compile.sh
  3. +9
    -3
      example/preview.adb
  4. BIN
      example/resource/alagard.png

+ 1
- 0
.gitignore Dosyayı Görüntüle

@@ -1,3 +1,4 @@
*.o
*.ali
window
preview

+ 5
- 0
compile.sh Dosyayı Görüntüle

@@ -8,6 +8,11 @@ gnatmake -c window.adb
gnatbind window.ali
gnatlink window.ali -lraylib

gnatmake -c preview.adb
gnatbind preview.ali
gnatlink preview.ali -lraylib

mv window ../window
mv preview ../preview

exit

example/texture.adb → example/preview.adb Dosyayı Görüntüle

@@ -1,18 +1,24 @@
with Raylib;
use Raylib;

procedure Window is
procedure Preview is

Map : Texture := No_Texture;

begin
Open_Window (1280, 720, "Pandemos Empire" & ASCII.NUL);
--
Map := Load_Texture ("./example/resource/pandemos.png" & ASCII.NUL);
--
Main_Loop: loop
exit when Window_Should_Close;
--
Begin_Drawing;
Clear_Background;
Draw_Texture (Map);
End_Drawing;
end loop Main_Loop;
--
Unload_Texture (Map);
--
Close_Window;
end Window;
end Preview;

BIN
example/resource/alagard.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 512  |  Yükseklik: 284  |  Boyut: 48KB

Yükleniyor…
İptal
Kaydet