Gaëtan Renaudeau 03a869c2e0 polish doc
2015-10-01 09:51:59 +02:00
..
2015-09-30 18:40:21 +02:00
2015-08-27 14:37:18 +02:00
2015-09-09 15:14:38 +02:00
2015-10-01 09:51:59 +02:00

The API

var GL = require("gl-react");
// OR
var GL = require("gl-react-native");

GL.Shaders.create

GL.Shaders.create(spec) allows to create shaders that can be used later in GL.View component.

GL.View

GL.View is a React Component that renders a given shader with uniforms (parameters to send to the shader).

GL.Uniform

(advanced) GL.Uniform allows to render a shader with any content (any React Native component rasterized as a uniform texture).

GL.Component

GL.Component is the class to extends to implement a GL component.