diff options
| author | xolatile | 2024-04-05 06:52:11 -0400 |
|---|---|---|
| committer | xolatile | 2024-04-05 06:52:11 -0400 |
| commit | 345ff1de0720af61e66fb99946817c5c34981b35 (patch) | |
| tree | f6724802f2ed25fa0550a64f2c41b963f87c1428 /window.adb | |
| parent | c6e1b398a9ce0f79293d9dffeb75820dbb9b351f (diff) | |
| download | xolatile-raylib-ada-345ff1de0720af61e66fb99946817c5c34981b35.tar.xz xolatile-raylib-ada-345ff1de0720af61e66fb99946817c5c34981b35.tar.zst | |
More font functions and C_String function...
Diffstat (limited to 'window.adb')
| -rw-r--r-- | window.adb | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -3,7 +3,12 @@ use Raylib; procedure Window is - Text : String := "Heyo world!" & Character'Val (0); + function C_String (Data : String) return String is + begin + return (Data & Character'Val (0)); + end C_String; + + Text : String := C_String ("Heyo world!"); Dragdown : Texture; @@ -12,12 +17,12 @@ procedure Window is begin - Open_Window (720, 360, "Heyo Raylib!" & Character'Val (0)); + Open_Window (720, 360, C_String ("Heyo Raylib!")); Set_Exit_Key (Key_Q); -- Default is Key_Escape Set_Target_FPS (72); -- Default is 60 - Dragdown := Load_Texture ("./texture.png" & Character'Val (0)); + Dragdown := Load_Texture (C_String ("./texture.png")); Main_Loop: loop exit when Window_Should_Close; |
