@glaced/generator

0.2.1 • Public • Published

Glace logo

node-glace

OpenGL Bindings Generator for node.js using napi

Generates OpenGL Bindings in the given version for the NodeJS N-API

To use this package to generate your own bindings use this:

git clone git@github.com:screeny05/glaced-generator.git
cd glaced-generator
npm install
node_modules/.bin/tsc

# generate bindings
node dist download
node dist generate --api gles2 --version 2.0

# compile bindings
cd target
npm run build

Usage

Usage: dist/index.js command [arguments]


Options:

  -V, --version  output the version number
  -h, --help     output usage information


Commands:

  download [options]   Downloads specification and documentation XML files
      -t --target <folder>  Target folder for XML files.
      -h, --help            output usage information

  generate [options]   Generates bindings
      -a --api <gles1|gles2|glsc2|gl|egl|glx|wgl>  API to generate bindings for.
      -v --version <version>                       Minimum required version.
      -s --source <folder>                         Folder containing the XML files.
      -t --target <folder>                         Target folder for generated bindings.
      -h, --help                                   output usage information

Currently tested and supported is only OpenGL ES 2.0.

Versioning

This package follows semantic versioning. The generated packages will have this versioning <@glaced/generator version>-<svn revision number>. The revision number is retrieved when downloading the XMLs from the OpenGL SVN repo.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @glaced/generator

Weekly Downloads

3

Version

0.2.1

License

MIT

Last publish

Collaborators

  • screeny05