All Projects → pixijs → pixi-gl-core

pixijs / pixi-gl-core

Licence: other
A set of tidy little pixi objects that make working with WebGL simpler

Programming Languages

javascript
184084 projects - #8 most used programming language

PIXI GL Core

Build Status

A set of tidy little pixi objects that make working with WebGL simpler.

They are used under the hood in Pixi v4. They should also give more users the ability to do more advanced stuff with WebGL in v4 too.

See the components in action here.

Installing

Installing using NPM:

npm install pixi-gl-core --save

Usage

Including using Node:

var gl = require('pixi-gl-core');

Including in the Browser:

<canvas id="stage"></canvas>
<script src="node_modules/pixi-gl-core/bin/pixi-gl-core.min.js"></script>
<script>
    try 
    {
        var context = pixi.gl.createContext(document.getElementById('stage'));
    }
    catch(e)
    {
        console.error("Unable to create WebGL context");
    }
</script>

Rebuilding

After install NPM module with npm install, build using:

npm run build

To run a watch, development command.

npm run watch

To generate the documention.

npm run doc

To deploy the documention to the gh-pages branch:

npm run deploy

Documentation

The API documentation can be found here.

License

This content is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].