Giter Site home page Giter Site logo

webgl-extensioneer's Introduction

WebGL Extensioneer

The purpose of this library is to make it easier to work with WebGL extensions. It has two features:

  • Get extensions without having to specify a vendor prefix
  • Optionally specify an extension requirement

Usage

Include the library in your page.

<script src="webgl-extensioneer.js"></script>

Use extensions as before

    var fptex = gl.getExtension('OES_texture_float'); //will be present
    var anisotropic = gl.getExtension('EXT_texture_filter_anisotropic'); //will likely be null

Also get draft extensions

    var anisotropic = gl.getExtension('EXT_texture_filter_anisotropic', {draft:true});

API

  • getExtension(name, [specification])
  • specification: object

Specification defaults to

  • draft: false
  • approved: true
  • ref: 'browser' or 'spec', defaults to 'browser', if you set it to 'spec' you will need to regularly update your copy of the library.

The test performed is to only return extensions if they match the specification (i.e. setting approved to false will not return approved extensions)

License

Copyright (c) 2012, Florian Boesch [email protected] http://codeflow.org/

WebGL Extensioneer is licensed under any of the following licenses at your choosing:

MIT: see mit-license GPL: see gpl-license BSD: see bsd-license

webgl-extensioneer's People

Contributors

pyalot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.