mirror of
https://github.com/haya3218/SDfmL.git
synced 2024-08-14 23:57:09 +00:00
1.5 KiB
1.5 KiB
What the shit is this
A wrapper build around SDL2, some of its libraries, and SoLoud to make a lot of stuff more easier to use.
Stuff like:
- Rendering functions
- Object system
- Sound
- Configuration
- and most possibly, more.... idk.
- Less dll binary clutter!
How the shit to use it den
Currently, it only supports MSVC, but you could probably tweak CMakeLists.txt to be able to use MingW, or GCC.
Requirements
- CMake, to build the damn thing
- SDL2 and SDL_ttf 2.0, duh
- SoLoud (static library)
- A VC++ (MSVC) compiler that atleast supports C++ std 17
To use it (in windows atleast),
- Get SDL2 and SDL_ttf 2.0, and put em on the respective x86 and x64 folders. You know how to place them. It's fucking common sense.
- SoLoud. Follow GENie instructions and build as a static library.
- If you are gonna be using the OpenMPT module, you'll need the libopenmpt dll in your exe directory as well.
- Prebuilt binaries (with OpenMPT) are here.
- Clone the dam repo somewhere on ur machine.
- Go to where you cloned it, and run
cmake -B build -DCMAKE_BUILD_TYPE=Release
- After successfully making the build files, run
cmake --build --config Release
to build it without the use of VStudio. - If everything worked well, congratulations! You have just compiled a shitty program.
src/Main.cpp
should contain example code with some explanations.