714a4bbceb2692ad4a23450b23465482b0f3343b
Amiga Complete System Demo
Author: Jason Bou-Samra (Paragon)
A nostalgic, hardware-accelerated image viewer written in Ada using the SDL2 (Simple DirectMedia Layer) bindings. This project serves as a demonstration of window initialization and texture rendering on modern systems while paying homage to the Amiga era.
🚀 Features
- Hardware Acceleration: Utilizes SDL2's
Acceleratedrenderer flags. - V-Sync Support: Includes
Present_V_Syncto ensure smooth, tear-free image display. - Asset Loading: Leverages
SDL_imageto handle PNG file formats. - Event Handling: A dedicated event loop captures the
Quitsignal to close the window gracefully. - Nostalgia: Specifically designed to showcase Amiga-themed graphical assets.
📸 Screenshot
🛠 Prerequisites
To compile and run this program, you will need:
- GNAT Compiler (e.g., GNAT Community or FSF GNAT).
- SDL2 Libraries:
SDL2andSDL2_imagedevelopment packages. - SDLAda Bindings: The Ada-specific wrappers for SDL2.
- pkg-config: To handle library flags during compilation.
⚙️ Compilation
The project is configured to be built with gprbuild. Use the following command to link the necessary SDL2 libraries:
gprbuild -largs $(pkg-config sdl2 SDL2_image --libs)
Alternatively, using gnatmake:
gnatmake main.adb -largs -lSDL2 -lSDL2_image
Languages
Ada
100%
