SDLOdin is a simple SDL2-based application that demonstrates the creation of a window, rendering graphics, and handling user input. This project serves as a foundation for building more complex SDL applications.
- Create and manage an SDL window
- Render images using SDL2
- Handle keyboard events
- Clean-up resources properly
- Odin - Make sure you have Odin installed on your machine.
- SDL2 - You need to have SDL2 and SDL2_image installed.
-
Clone the repository:
git clone https://github.com/Azteriisk/SDLOdin.git cd SDLOdin -
Install the required dependencies (if not already installed):
# Instructions for installing SDL2 and SDL2_image -
Build the project:
odin build main.odin
-
Run the application:
./main
Once the application is running, you can interact with it using the keyboard. Press the ESC key or close the window to exit.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.