Socket
Socket
Sign inDemoInstall

gl-api

Package Overview
Dependencies
0
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gl-api

A JSON listing of the WebGL 1.0 API


Version published
Maintainers
7
Install size
150 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 19 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc