https://github.com/1337programming/webassemblyopengl
C++ project with WebAssembly + OpenGL + Webpack
https://github.com/1337programming/webassemblyopengl
c cpp javascript node nodejs opengl wasm webassembly
Last synced: 17 days ago
JSON representation
C++ project with WebAssembly + OpenGL + Webpack
- Host: GitHub
- URL: https://github.com/1337programming/webassemblyopengl
- Owner: 1337programming
- Created: 2017-07-02T05:21:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-09T09:06:34.000Z (almost 8 years ago)
- Last Synced: 2025-04-15T11:51:42.609Z (12 months ago)
- Topics: c, cpp, javascript, node, nodejs, opengl, wasm, webassembly
- Language: C++
- Homepage:
- Size: 156 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAssembly & OpenGL (WIP)
This is a boilerplate example of how to port over a typical OpenGL project with Emscripten to produce a .wasm file for browsers.
# Compilation and Serving
- Follow the steps [here](http://webassembly.org/getting-started/developers-guide/) to get ready to comile WebAssembly
- Git Clone
- `cd` to the root of the newly cloned directory
- Use the makefile to either build, clean up, or make a distribution version (build directory only) of the repo
- Build: `make`
- Clean: `make clean`
- Build, but remove objects leaving the `build` dir: `make dist`
- `npm run start` to serve demo