udevbe / WasmGL

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:C 70.6%Language:JavaScript 28.6%Language:HTML 0.5%Language:Python 0.3%Language:Makefile 0.0%