diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-12-07 16:59:17 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-12-07 16:59:17 +0100 |
| commit | acfbdcefdbc60e97a9e3447afed204b3e40d991e (patch) | |
| tree | 8bd7db838cb47a39f985fd6a5be163fbe65a7a48 /main.adb | |
| parent | 9b47ade2394becce870d195f198c235b3275ed34 (diff) | |
| download | snake-acfbdcefdbc60e97a9e3447afed204b3e40d991e.tar.gz snake-acfbdcefdbc60e97a9e3447afed204b3e40d991e.tar.bz2 snake-acfbdcefdbc60e97a9e3447afed204b3e40d991e.zip | |
Basic Graphics package
Diffstat (limited to 'main.adb')
| -rw-r--r-- | main.adb | 47 |
1 files changed, 18 insertions, 29 deletions
@@ -1,36 +1,25 @@ 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; - +with Graphics; +use Graphics; procedure Main is - window: SDL.Video.Windows.Window; - renderer: SDL.Video.Renderers.Renderer; + state: T_State; begin - if not SDL.Initialise then - Put(SDL.Error.Get); - return; - end if; - - Create(window, "bonjour", 10, 10, 400, 400); - Create(renderer, window); - - SDL.Timers.Wait_Delay(1000); - - - - - SDL.Finalise; + -- SDL.Initialise; + -- Create(window, "bonjour", 10, 10, 400, 400); + -- Create(renderer, window); + -- Set_Draw_Colour(renderer, (0, 0, 0, 255)); + -- Clear(renderer); + -- Set_Draw_Colour(renderer, (255, 255, 255, 255)); + -- r := (10, 10, 100, 100); + -- Fill(renderer, r); + -- Present(renderer); + -- SDL.Timers.Wait_Delay(1000); + -- SDL.Finalise; + -- + Init(state); + Run(state); + Quit(state); end Main; |
