This example demonstrates how to center textures/windows in SDL3 applications.
- RAII-based resource management
- Object-oriented design with C++ classes
- SDL3 with SDL3_ttf integration
- Clean, minimal codebase
- Documented
- Git
- CMake (3.10+)
- C++ compiler (supporting C++11)
- SDL3 development libraries (SDL3, SDL3_ttf)
-
- first clone the project using git (git required) :
git clone https://github.com/SalaxDev/SDL3-Center-Texture-Example.git-
- go to the project directory, then type (cmake & compiler required) :
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build-
- then go to bin directory and you should see the executable program
if you don't want to build it yourself, you can find the latest version in Release :
Windows 7+ 64 Bit:
Note: The executable is not code-signed and may be flagged by antivirus software. If this occurs, add an exception for the file or folder.
Important
Any use of this project for AI-Training is Prohibited! check LICENSE for more information