You will need CMake. Look at Dockerfile
for the required packages if building on Ubuntu (gcc-mingw-w64
is only needed when cross-compiling for Windows).
- Change into
linux_out/
. - Execute
./build
. - The binaries will be in
linux_out/install/bin/
.
There is also a simple Makefile if the above does not work.
You can change into x86_64-w64-mingw32_out/
to cross-compile for Windows.
Run get_image
on the provided simple.frag
shader to test that it works. E.g.
linux_out/install/bin/get_image --persist simple.frag
./get_image <PATH_TO_FRAGMENT_SHADER>
Useful flags:
--persist
- causes the shader to be rendered until a button is pressed--output <OUTPUT_FILE>
- a png file will be produced at the given location with the contents of the rendered shader--vertex <PATH_TO_VERTEX_SHADER>
- provide a custom vertex shader file, rather than using the trivial one provided