SDfmL/README.md

59 lines
2.8 KiB
Markdown
Raw Normal View History

2022-02-07 05:15:50 +00:00
![bitch](logo.png)
2022-02-09 03:38:50 +00:00
# SDfmL
2022-02-07 05:15:50 +00:00
2022-02-09 03:38:50 +00:00
*Simple DirectMedia Flixel-like Multipurpose Layer*
*A basic wrapper meant to make creating SHIT easier*
2022-02-07 05:15:50 +00:00
# What the shit is this
2022-02-09 02:14:56 +00:00
A wrapper build around SDL2, some of its libraries, and SoLoud to make a lot of stuff
2022-02-07 05:15:50 +00:00
more easier to use.
Stuff like:
- Rendering functions
- Object system
- Sound
- and most possibly, more.... idk.
# 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.
2022-02-07 05:19:33 +00:00
## Requirements
2022-02-07 05:20:19 +00:00
- CMake, to build the damn thing
2022-02-07 05:19:33 +00:00
- SDL2, SDL_image 2.0, and SDL_ttf 2.0, duh
2022-02-09 02:14:56 +00:00
- SoLoud (static library)
2022-02-07 05:19:33 +00:00
- A VC++ (MSVC) compiler that atleast supports C++ std 17
2022-02-07 05:15:50 +00:00
To use it (in windows atleast),
- Get SDL2, SDL_image 2.0, 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-09 02:16:07 +00:00
- [SoLoud.](https://sol.gfxile.net/soloud/index.html) Follow GENie instructions and build as a static library.
2022-02-09 02:14:56 +00:00
Since it's currently confusing to do, [here's some prebuilt lib files for use with this wrapper.](https://cdn.discordapp.com/attachments/872338952483381258/940791426797686804/SoLoud_Static.zip)
2022-02-07 05:15:50 +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.
`src/Main.cpp` should contain example code with some explanations.
2022-02-07 05:15:50 +00:00
# Licensing
2022-02-09 03:19:15 +00:00
The sole libraries themselves (SDL and SoLoud) are under the zLib/LibPNG licenses ofc, so you'll have to deal with that
2022-02-07 05:15:50 +00:00
2022-02-09 05:05:34 +00:00
TinySoundfont is under the same license as this wrapper (MIT License)
## SDfmL license
2022-02-07 05:15:50 +00:00
MIT License
Copyright 2022 haya3218
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.