gl-api

1.0.3 • Public • Published

gl-api

A JSON listing of the WebGL 1.0 API, scraped from the OpenGL ES 2.0 Reference Pages.

Inspired by @gre's glsldoc package, this should be useful if you're looking to add contextual documentation to WebGL code or other forms of generated documentation.

Incomplete: still in need of better conversion between OpenGL ES and WebGL. Please pitch in if you'd like to help!

Usage

NPM

api = require('gl-api')

Where api is an array, containing the following properties:

  • name: the property/variable name.
  • kind: the kind of value that's being documented.
  • description: a short description of the value.
  • usage: a short description of how the value should be used. If it's a function, this is its signature (annotated with types).
  • parameters: an object listing the parameters used in a function, where the keys are the argument names and the values are a description of those arguments.
  • href: the original source of the documentation.
  • also: an array of related properties/variables, each with a name and a href linking to the relevant OpenGL ES Reference Page.

Contributing

See stackgl/contributing.

License

MIT. See LICENSE.md for details.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.32latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.32
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i gl-api

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mikolalysenko
  • wwwtyro
  • thibauts
  • mikkoh
  • yoshuawuyts
  • mattdesl
  • hughsk
  • chrisdickinson
  • tatumcreative
  • rezaali