JavaScript API

The NodeJsPlugin and NodeJsExtension plugins provide JavaScript API for ApertusVR.

C++ Apertus Plugins

NodeJsExtension

NodeJsExtension plugin is a C++ Node.js module, compiled with nbindarrow-up-right in order to call C++ code from JavaScript. It's located in ApertusVR/plugins/jsAPI/nodeJsExtension/ folder. Header files are nbindarrow-up-right bindings to ApertusVR's C++ API.

Nbindarrow-up-right is a set of headers that make your C++11 library accessible from JavaScript.

circle-info

Note: Nbind arrow-up-rightis a great tool but it has many limitations. SWIG arrow-up-rightis an alternative, however, it currently does not support the specific version of V8arrow-up-right which is used by ApertusVR.

NodeJsPlugin

NodeJsPlugin starts an embedded Node.jsarrow-up-right instance which serves as the backend for ApertusVR. It uses Expressarrow-up-right framework that provides a robust set of features for web and mobile applications.

Expressarrow-up-right provides a thin layer of fundamental web application features, without obscuring Node.js features that you know and love.

The backend application is located in ApertusVR/plugins/jsAPI/nodeJsPlugin/js/ folder.

JavaScript Apertus Plugins

Last updated