Skip to content
/ WasmGL Public
forked from 0xAA55/WebGL4WASM

A simple native-JS framework that implemented OpenGL ES 3.0 interface for WebAssembly programs to use by wrapping the WebGL 2.0 functions.

License

Notifications You must be signed in to change notification settings

udevbe/WasmGL

 
 

Repository files navigation

WebAssembly + WebGL = Native OpenGL ES 3.0 called by C/C++ on Web

Directory Structure

  • testc : The testing C program which invokes OpenGL ES 3.0 APIs to render something.
  • testwww : A simple webroot for testing.
  • testhost.py : A script that runs a HTTP server on port 8000, using testwww as webroot.
  • compile.py and recompile.py : These scripts invokes makefile to run compilation and copy the generated program.wasm into webroot directory.

Requirements

  • python3 : To run the scripts.
  • clang and wasm-ld : The compiler and the linker to generate.
  • makefile : Normal GNU make. Should work with clang (that means it should know .c => .o).
  • Non-IE browser : Should be able to run WebAssembly programs.

About

A simple native-JS framework that implemented OpenGL ES 3.0 interface for WebAssembly programs to use by wrapping the WebGL 2.0 functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 70.6%
  • JavaScript 28.6%
  • Other 0.8%