Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.11 KB

This is an emscripten project. At the moment, is really just a triangle rendered with OpenGL. However, you can already use it as an starting point for a Native and WASM OpenGL project, as the cool thing is that it runs on both Native (OSX, Linux) and Web (WebAssembly) with the help of emscripten tooling.

Building

To build it yourself, you first have to clone the projects with the submodules which are the libraries needed (glew and glfw).

git clone --recurse-submodules -j8 https://github.com/zant/woxel
cd woxel

Native

Requirements

After you make sure you have all the requirements covered, run:

sh build.sh

Web

Requirements

Python is only really required for the HTTP server, you can serve the embuild folder as you will. After you make sure you have all the requirements covered, run:

sh embuild.sh

Then, visit http://localhost:8000