Skip to content

zant/opengl-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

OpenGL targeting Native & WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published