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 using NPM:
npm install pixi-gl-core --saveIncluding 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>After install NPM module with npm install, build using:
npm run buildTo run a watch, development command.
npm run watchTo generate the documention.
npm run docTo deploy the documention to the gh-pages branch:
npm run deployThe API documentation can be found here.
This content is released under the MIT License.