SDL_Renderer backend and SDL_image texture loader

This commit is contained in:
2024-08-01 20:47:26 +03:00
parent 7471c09452
commit 87296180ee
11 changed files with 231 additions and 81 deletions

View File

@@ -1,31 +1,16 @@
# ougge
# OUGGE
A game engine or something, idk.
## Installation
1. Clone the repository
1. Clone the repository.
```sh
git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/ougge.git
```
2. Install [cbuild](https://timerix.ddns.net:3322/Timerix/cbuild.git)
3. Install **SDL2** from package manager or compile it from source.
**If you are using msys, switch to mingw64 sh.**
```sh
git clone https://github.com/libsdl-org/SDL.git
cd SDL
./configure
make -j [number of cpu threads]
```
Then you can install it systemwide (on **Linux**):
```sh
sudo make install
```
or copy to ./dependencies/precompiled/ (on **Windows**):
```sh
mkdir -p ../ougge/dependencies/precompiled/
cp ./build/.libs/SDL2.dll ../ougge/dependencies/precompiled/
```
If it doesn't work, read [SDL/INSTALL.txt](https://github.com/libsdl-org/SDL/blob/SDL2/INSTALL.txt) and [SDL/docs/README.md](https://github.com/libsdl-org/SDL/blob/SDL2/docs/README.md).
4. Symlink SDL headers directory to `dependencies/include`
2. Install [cbuild](https://timerix.ddns.net:3322/Timerix/cbuild.git).
3. Install [SDL2](https://github.com/libsdl-org/SDL) and [SDL2_image](https://github.com/libsdl-org/SDL_image).
- On **Linux** install shared libraries from a package manager or compile them from source.
- On **Windows** download pre-built dll's from github releases and put them into `dependencies/precompiled/`.
4. Symlink SDL headers directory to `dependencies/include`.
```sh
cd ../ougge
ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH -T dependencies/include/SDL2