Old project for fun learning sdl, opengl, imgui, and cross platform compilation
Implements uniforms iTime and iResolution in the same format as https://shadertoy.com
- Install SDL2 ex
apt install libsdl2-dev
orvcpkg install sdl2
vcpkg users remember to set the triplet you want e.g.vcpkg install sdl2:x64-windows
- Clone this repo
git clone --recursive https://github.com/maximumgame/SDLVIZ.git
- cd inside
cd SDLVIZ
- Create a build folder and move inside
mkdir build && cd ./build
- Generate project files
cmake ..
- Build the project as you normally would ex.
Linux:
make -j
Windows:
cmake --build . --config Debug -j
Support for VCPKG_ROOT
enviroment variable is built in. Specifing the vcpkg cmake file is not required if this environment variable is set.
SDLVIZ has an emscripten target
You can use the included Dockerfile to build a webserver and try it out
docker build -t sdlviz-wasm -f resources/Dockerfile .
docker run --rm -p 8080:80 sdlviz-wasm
And view it at http://localhost:8080