Skip to content

mesbahamin/transparent-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transparent Cube

Build

Compile on Linux

  • Install clang and glfw3 with your system's package manager.
  • make run to compile and run the release build.

Compile on Windows

  • Install and set up clang. The sanest set of instructions I've found is here.
  • Download the latest 64-bit Windows pre-compiled binary package from here.
  • Unzip it and copy the include and lib-vc2019 folders into lib/glfw_windows/. The folder structure should look like this:
lib/glfw_windows/
|-- include
|   +-- GLFW
|       |-- glfw3.h
|       +-- glfw3native.h
+-- lib-vc2019
    |-- glfw3.dll
    |-- glfw3dll.lib
    +-- glfw3.lib
  • .\build.bat && .\out\release\transparent-cube.exe to compile and run the release build.

References

WebAssembly and WebGL

Approximating Trigonometric Functions