https://github.com/1337programming/webassemblyopengl-c
C project WebAssembly + OpenGL + Webpack
https://github.com/1337programming/webassemblyopengl-c
Last synced: 4 months ago
JSON representation
C project WebAssembly + OpenGL + Webpack
- Host: GitHub
- URL: https://github.com/1337programming/webassemblyopengl-c
- Owner: 1337programming
- Created: 2017-07-03T17:53:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T17:55:10.000Z (over 8 years ago)
- Last Synced: 2025-02-25T18:29:52.230Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebAssembly & OpenGL (C examples)
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