A modular graphical extension for the SyntaX ecosystem. This library wraps the complexity of SDL3 into a powerful, easy-to-use C++ interface while maintaining maximum performance.
- Zero Boilerplate: Initialize a window and renderer in a single line.
- Allman Style: Clean and consistent code architecture.
- SyntaX Integrated: Works seamlessly with the
bettersyntaxnamespace. - Optimized: Native C++ performance for graphical applications.
- SDL3: Ensure you have the SDL3 development libraries installed on your system.
- Compiler: A C++17 compatible compiler (GCC, Clang, or MSVC).
- Clone this repository:
git clone [https://github.com/hypernova-developer/SyntaX_for_SDL.git](https://github.com/hypernova-developer/SyntaX_for_SDL.git)
- Include the header in your project:
#include "include/bettersdl.hpp"
- Link the SDL3 library in your build system.
#include "bettersdl.hpp"
int main(int argc, char* argv[])
{
// Create the engine instance
bettersyntax::sdl::Engine app("SyntaX Power", 1280, 720);
while (app.isRunning())
{
app.update(); // Handle events
app.clear(); // Clear with SyntaX Purple
app.render(); // Present frame
}
return 0;
}Part of the SyntaX Project. Maintained by @hypernova-developer.