Skip to content
Example showing how to create a native extension for HTML5
C++ HTML JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html5nativeext
input
lib_src
main
.gitignore Initial commit May 4, 2017
README.md
game.project
html5template.html

README.md

HTML5 Native Extension

Features

This is a short example of what features the native extension brings for the HTML5 platform

  • C/C++ - Add pure C/C++ code or C/C++ libraries built with Emscripten

  • EM_ASM - Add "in place" JavaScript code directly in your C/C++ code

  • JavaScript libraries - Add Emscripten JavaScript libraries. These are JavaScript files with special "hooks" that the Emscripten compiler will react to and merge with the final executable

Emscripten

Emscripten is a Clang based compiler that allows for compiling existing C/C++ code into JavaScript and WebAssembly.

Example app

The example app demonstrates these features, and also shows an example of how to pass information to the running game.

You can’t perform that action at this time.