A ShaderToy clone... but on Desktop!
This simple app automatically compiles your GLSL fragment shader code and displays the result on the screen. Built with wxWidgets, the app works on Windows, Mac, and Linux.
Full tutorial: https://www.youtube.com/watch?v=wxM9nkAQLHE
We use modern CMake's FetchContent functionality to download wxWidgets and GLEW (the latter is needed to resolve OpenGL function addresses).
This works on Windows, Mac, and Linux. You'll need cmake and a C++ compiler (tested on clang, gcc, and MSVC).
Linux builds require the GTK3 library and headers installed in the system. You can install them on Ubuntu using:
sudo apt install libgtk-3-devOpenGL tutorials require OpenGL development package on Linux (Windows and Mac should work out of the box):
sudo apt install libglu1-mesa-devOn Fedora:
sudo dnf install gtk3-devel mesa-libGLU-develTo build the project, use:
cmake -S. -Bbuild
cmake --build build -jThis will create a directory named build and create all build artifacts there. The main executable can be found directly in the build/ folder.
Check out the blog for more! www.onlyfastcode.com
📚 More C++ and wxWidgets tutorials: devmindscape.com
💼 Available for contract work: devmindscape.com/work
