libzcs
v1.0.2
Published
JavaScript bindings for LibZCS skeletal animation encoding/decoding library
Downloads
7
Readme
LibZCS JavaScript wrapper
Utility bindings for LibZCS in JavaScript/TypeScript
Current Version: 1.0
Simple JavaScript/TypeScript bindings for LibZCS. Includes a binary (JS/WASM) version of LibZCS that can be used with these bindings (in /bin).
Building
Emscripten is used to build this project.
First, set up Emscripten PATH settings:
source <emscripten_install_dir>/emsdk_env.sh
Once that is done, to build (from this repository's root directory, not /typescript):
mkdir wasmbin
cd wasmbin
emcmake cmake ..
emmake libzcs libzcs_js
WASM version: libzcs.js and libzcs.wasm JS-only version: libzcs_js.js and libzcs_js.js.mem
Include both files (for whichever version you want to use) somewhere in your project.
Building the bindings is just npm run build
.