Unofficial cross platform examples for learnopengl.com
- written in C.
- shader dialect GLSL v450
- runs on OSX, Linux, Windows and web (emscripten) from the same source
- uses Sokol libraries for cross platform support
- a C development environment:
- OSX: Xcode + command line tools
- Linux: gcc/clang
- Windows: Visual Studio/Mingw
- xmake
> git clone https://github.com/zeromake/learnopengl-examples.git
> cd learnopengl-examples
> xmake f -c -y
> xmake b 1-3-1
> xmake r 1-3-1
To enable web builds you need to setup the emscripten SDK
> export EMSDK_PATH=../emsdk
> $EMSDK_PATH/emsdk activate latest
> source $EMSDK_PATH/emsdk_env.sh
> xmake f -c -y -p wasm -a wasm64
> xmake b
> xmake lua webpage.lua
> # generate to docs dir