README.md (1453B)
1 # Transparent Cube 2 3 4 ## Build 5 6 ### Compile on Linux 7 8 - Install clang and glfw3 with your system's package manager. 9 - `make run` to compile and run the release build. 10 11 12 ### Compile on Windows 13 14 - Install and set up clang. The sanest set of instructions I've found is 15 [here][1]. 16 - Download the latest 64-bit Windows pre-compiled binary package from [here][2]. 17 - Unzip it and copy the `include` and `lib-vc2019` folders into 18 `lib/glfw_windows/`. The folder structure should look like this: 19 20 ``` 21 lib/glfw_windows/ 22 |-- include 23 | +-- GLFW 24 | |-- glfw3.h 25 | +-- glfw3native.h 26 +-- lib-vc2019 27 |-- glfw3.dll 28 |-- glfw3dll.lib 29 +-- glfw3.lib 30 ``` 31 32 - `.\build.bat && .\out\release\transparent-cube.exe` to compile and run the 33 release build. 34 35 36 ## References 37 38 ### WebAssembly and WebGL 39 40 - [Notes on working with C and WebAssembly][3] 41 - [Compiling C to WebAssembly Without Emscripten][4] 42 43 44 ### Approximating Trigonometric Functions 45 46 - [Handmade Hero Day 400: Introduction to Function Approximation with Andrew Bromage][5] 47 - [Fast and accurate sine/cosine - DevMaster.net Forums][6] 48 49 50 [1]: https://gist.github.com/InNoHurryToCode/955d63db0d79699fed63fe18eeebf17e 51 [2]: https://www.glfw.org/download.html 52 [3]: https://aransentin.github.io/cwasm/ 53 [4]: https://dassur.ma/things/c-to-webassembly/ 54 [5]: https://guide.handmadehero.org/code/day440/ 55 [6]: https://web.archive.org/web/20080228213915/http://www.devmaster.net/forums/showthread.php?t=5784