2022-02-13 07:04:14 +00:00
|
|
|
# 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:
|
2022-02-15 01:11:07 +00:00
|
|
|
|
2022-02-13 07:04:14 +00:00
|
|
|
- Rendering functions
|
|
|
|
- Object system
|
|
|
|
- Sound
|
|
|
|
- Configuration
|
|
|
|
- and most possibly, more.... idk.
|
|
|
|
- Less dll binary clutter!
|
|
|
|
|
2022-02-15 01:11:07 +00:00
|
|
|
## How the shit to use it den
|
2022-02-13 07:04:14 +00:00
|
|
|
|
|
|
|
Currently, it only supports MSVC, but you could probably tweak CMakeLists.txt to be able to use
|
|
|
|
MingW, or GCC.
|
|
|
|
|
2022-02-15 01:11:07 +00:00
|
|
|
### Requirements
|
|
|
|
|
2022-02-13 07:04:14 +00:00
|
|
|
- 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.
|
2022-02-13 07:07:40 +00:00
|
|
|
- [SoLoud fork.](https://github.com/haya3218/soloud) Follow GENie instructions and build as a static library.
|
2022-02-13 07:08:15 +00:00
|
|
|
- You also need to build libmodplug with it as well.
|
2022-02-13 07:04:14 +00:00
|
|
|
- If you are gonna be using the OpenMPT module, you'll need the libopenmpt dll in your exe directory as well.
|
2022-02-14 05:53:56 +00:00
|
|
|
- Prebuilt binaries (with OpenMPT) are [here.](https://cdn.discordapp.com/attachments/872338952483381258/942572007705440346/SoLoudMasterBuildSDL2libmodplug.7z)
|
2022-02-13 07:04:14 +00:00
|
|
|
- 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.
|
|
|
|
|
2022-02-15 01:11:07 +00:00
|
|
|
`src/Main.cpp` should contain example code with some explanations.
|