aboutsummaryrefslogtreecommitdiff
path: root/main.adb
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-12-07 11:22:54 +0100
committerCharles <sircharlesaze@gmail.com>2019-12-07 11:22:54 +0100
commit9b47ade2394becce870d195f198c235b3275ed34 (patch)
tree0f6967b8014c76096a3edf464d1324c83da1be1b /main.adb
parent6f2fc1af33d8f1ead133f9ea4ef05c026be5c9e2 (diff)
downloadsnake-9b47ade2394becce870d195f198c235b3275ed34.tar.gz
snake-9b47ade2394becce870d195f198c235b3275ed34.tar.bz2
snake-9b47ade2394becce870d195f198c235b3275ed34.zip
Basic Graphics (bindings are working! game/graphics/queue packages draft
Diffstat (limited to 'main.adb')
-rw-r--r--main.adb27
1 files changed, 26 insertions, 1 deletions
diff --git a/main.adb b/main.adb
index 4105856..e1e9d78 100644
--- a/main.adb
+++ b/main.adb
@@ -2,10 +2,35 @@ with Ada.Text_IO;
use Ada.Text_IO;
with SDL;
+with SDL.Error;
+with SDL.Video.Renderers;
+with SDL.Video.Windows;
+
+with SDL.Timers;
+
+with SDL.Video.Windows.Makers;
+use SDL.Video.Windows.Makers;
+
+with SDL.Video.Renderers.Makers;
+use SDL.Video.Renderers.Makers;
+
procedure Main is
+ window: SDL.Video.Windows.Window;
+ renderer: SDL.Video.Renderers.Renderer;
begin
if not SDL.Initialise then
- Put("Error");
+ Put(SDL.Error.Get);
+ return;
end if;
+
+ Create(window, "bonjour", 10, 10, 400, 400);
+ Create(renderer, window);
+
+ SDL.Timers.Wait_Delay(1000);
+
+
+
+
+ SDL.Finalise;
end Main;