diff --git a/cookbook/API.json b/cookbook/API.json index 2b2a4bf..003e73e 100755 --- a/cookbook/API.json +++ b/cookbook/API.json @@ -665,7 +665,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L158-L557" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L158-L557" }, "kind": "class", "name": "Surface", @@ -1937,7 +1937,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L283-L286" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L283-L286" }, "params": [ { @@ -2246,7 +2246,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L295-L298" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L295-L298" }, "params": [ { @@ -2575,7 +2575,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L305-L308" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L305-L308" }, "memberof": "Surface", "scope": "instance", @@ -2738,7 +2738,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L316-L318" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L316-L318" }, "memberof": "Surface", "scope": "instance", @@ -2855,7 +2855,7 @@ }, "file": "packages/gl-react/src/createSurface.js", "path": "packages/gl-react/src/createSurface.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/createSurface.js#L326-L328" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/createSurface.js#L326-L328" }, "memberof": "Surface", "scope": "instance", @@ -3155,7 +3155,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L345-L1002" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L345-L1002" }, "properties": [ { @@ -3935,7 +3935,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L506-L524" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L506-L524" }, "name": "capture", "kind": "function", @@ -4088,7 +4088,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L531-L536" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L531-L536" }, "kind": "function", "name": "redraw", @@ -4195,7 +4195,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L543-L545" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L543-L545" }, "kind": "function", "name": "flush", @@ -4314,7 +4314,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L108-L149" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L108-L149" }, "kind": "namespace", "name": "Shaders", @@ -4377,7 +4377,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L122-L138" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L122-L138" }, "memberof": "Shaders", "params": [ @@ -4623,7 +4623,7 @@ }, "file": "packages/gl-react/src/LinearCopy.js", "path": "packages/gl-react/src/LinearCopy.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/LinearCopy.js#L14-L24" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/LinearCopy.js#L14-L24" }, "properties": [ { @@ -4795,7 +4795,7 @@ }, "file": "packages/gl-react/src/NearestCopy.js", "path": "packages/gl-react/src/NearestCopy.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/NearestCopy.js#L14-L25" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/NearestCopy.js#L14-L25" }, "properties": [ { @@ -5310,7 +5310,7 @@ }, "file": "packages/gl-react/src/Bus.js", "path": "packages/gl-react/src/Bus.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Bus.js#L44-L201" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Bus.js#L44-L201" }, "properties": [ { @@ -5683,7 +5683,7 @@ }, "file": "packages/gl-react/src/Bus.js", "path": "packages/gl-react/src/Bus.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Bus.js#L154-L157" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Bus.js#L154-L157" }, "name": "capture", "kind": "function", @@ -5836,7 +5836,7 @@ }, "file": "packages/gl-react/src/Bus.js", "path": "packages/gl-react/src/Bus.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Bus.js#L169-L171" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Bus.js#L169-L171" }, "kind": "function", "name": "redraw", @@ -6059,7 +6059,7 @@ }, "file": "packages/gl-react/src/connectSize.js", "path": "packages/gl-react/src/connectSize.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/connectSize.js#L18-L56" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/connectSize.js#L18-L56" }, "kind": "function", "name": "connectSize", @@ -6434,7 +6434,7 @@ }, "file": "packages/gl-react/src/GLSL.js", "path": "packages/gl-react/src/GLSL.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/GLSL.js#L26-L32" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/GLSL.js#L26-L32" }, "returns": [ { @@ -6770,7 +6770,7 @@ }, "file": "packages/gl-react/src/GLSL.js", "path": "packages/gl-react/src/GLSL.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/GLSL.js#L7-L7" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/GLSL.js#L7-L7" }, "name": "GLSLCode", "kind": "typedef", @@ -6925,7 +6925,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L44-L46" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L44-L46" }, "examples": [ { @@ -7067,7 +7067,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L15-L17" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L15-L17" }, "examples": [ { @@ -7258,7 +7258,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L51-L53" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L51-L53" }, "name": "ShadersSheet", "kind": "typedef", @@ -7304,7 +7304,7 @@ }, "file": "packages/gl-react/src/Shaders.js", "path": "packages/gl-react/src/Shaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Shaders.js#L24-L27" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Shaders.js#L24-L27" }, "name": "ShaderIdentifier", "kind": "typedef", @@ -8182,7 +8182,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L159-L161" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L159-L161" }, "name": "Uniforms", "kind": "typedef", @@ -8466,7 +8466,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L66-L69" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L66-L69" }, "name": "TextureOptions", "kind": "typedef", @@ -8804,7 +8804,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L46-L46" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L46-L46" }, "name": "Interpolation", "kind": "typedef", @@ -9134,7 +9134,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L56-L59" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L56-L59" }, "name": "WrapMode", "kind": "typedef", @@ -9193,7 +9193,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L96-L99" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L96-L99" }, "name": "BlendFuncSrcDst", "kind": "typedef", @@ -10223,7 +10223,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L91-L91" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L91-L91" }, "name": "BlendFunc", "kind": "typedef", @@ -10326,7 +10326,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L114-L116" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L114-L116" }, "name": "Clear", "kind": "typedef", @@ -10498,7 +10498,7 @@ }, "file": "packages/gl-react/src/Node.js", "path": "packages/gl-react/src/Node.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Node.js#L104-L109" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Node.js#L104-L109" }, "name": "Vec4", "kind": "typedef", @@ -10653,7 +10653,7 @@ }, "file": "packages/gl-react/flow/ndarray.js", "path": "packages/gl-react/flow/ndarray.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/flow/ndarray.js#L7-L13" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/flow/ndarray.js#L7-L13" }, "name": "NDArray", "kind": "typedef", @@ -10926,7 +10926,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L9-L50" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L9-L50" }, "name": "TextureLoader", "kind": "class", @@ -10969,7 +10969,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L14-L14" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L14-L14" }, "properties": [ { @@ -11084,7 +11084,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L19-L21" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L19-L21" }, "name": "constructor", "kind": "function", @@ -11195,7 +11195,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L26-L26" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L26-L26" }, "name": "dispose", "kind": "member", @@ -11302,7 +11302,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L31-L31" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L31-L31" }, "name": "canLoad", "kind": "member", @@ -11418,7 +11418,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L36-L36" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L36-L36" }, "name": "get", "kind": "member", @@ -11544,7 +11544,7 @@ }, "file": "packages/gl-react/src/TextureLoader.js", "path": "packages/gl-react/src/TextureLoader.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoader.js#L43-L49" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoader.js#L43-L49" }, "name": "load", "kind": "function", @@ -11691,7 +11691,7 @@ }, "file": "packages/gl-react/src/Visitors.js", "path": "packages/gl-react/src/Visitors.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitors.js#L10-L28" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitors.js#L10-L28" }, "kind": "namespace", "name": "Visitors", @@ -11730,7 +11730,7 @@ }, "file": "packages/gl-react/src/Visitors.js", "path": "packages/gl-react/src/Visitors.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitors.js#L14-L16" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitors.js#L14-L16" }, "memberof": "Visitors", "name": "add", @@ -11794,7 +11794,7 @@ }, "file": "packages/gl-react/src/Visitors.js", "path": "packages/gl-react/src/Visitors.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitors.js#L20-L23" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitors.js#L20-L23" }, "memberof": "Visitors", "name": "remove", @@ -11958,7 +11958,7 @@ }, "file": "packages/gl-react/src/TextureLoaders.js", "path": "packages/gl-react/src/TextureLoaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoaders.js#L14-L33" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoaders.js#L14-L33" }, "kind": "namespace", "name": "TextureLoaders", @@ -12048,7 +12048,7 @@ }, "file": "packages/gl-react/src/TextureLoaders.js", "path": "packages/gl-react/src/TextureLoaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoaders.js#L19-L21" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoaders.js#L19-L21" }, "memberof": "TextureLoaders", "name": "add", @@ -12180,7 +12180,7 @@ }, "file": "packages/gl-react/src/TextureLoaders.js", "path": "packages/gl-react/src/TextureLoaders.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/TextureLoaders.js#L26-L29" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/TextureLoaders.js#L26-L29" }, "memberof": "TextureLoaders", "name": "remove", @@ -12265,7 +12265,7 @@ }, "file": "packages/gl-react/src/VisitorLogger.js", "path": "packages/gl-react/src/VisitorLogger.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/VisitorLogger.js#L20-L100" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/VisitorLogger.js#L20-L100" }, "name": "VisitorLogger", "augments": [ @@ -12313,7 +12313,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L24-L64" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L24-L64" }, "name": "Visitor", "kind": "class", @@ -12345,7 +12345,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L28-L28" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L28-L28" }, "name": "onSurfaceMount", "kind": "function", @@ -12405,7 +12405,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L32-L32" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L32-L32" }, "name": "onSurfaceUnmount", "kind": "function", @@ -12465,7 +12465,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L36-L36" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L36-L36" }, "name": "onSurfaceGLContextChange", "kind": "function", @@ -12537,7 +12537,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L39-L39" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L39-L39" }, "name": "onSurfaceDrawSkipped", "kind": "function", @@ -12597,7 +12597,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L42-L42" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L42-L42" }, "name": "onSurfaceDrawStart", "kind": "function", @@ -12657,7 +12657,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L45-L45" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L45-L45" }, "name": "onSurfaceDrawError", "kind": "function", @@ -12717,7 +12717,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L48-L48" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L48-L48" }, "name": "onSurfaceDrawEnd", "kind": "function", @@ -12777,7 +12777,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L51-L51" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L51-L51" }, "name": "onNodeDrawSkipped", "kind": "function", @@ -12837,7 +12837,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L54-L54" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L54-L54" }, "name": "onNodeDrawStart", "kind": "function", @@ -12897,7 +12897,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L57-L57" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L57-L57" }, "name": "onNodeSyncDeps", "kind": "function", @@ -13011,7 +13011,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L60-L60" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L60-L60" }, "name": "onNodeDraw", "kind": "function", @@ -13086,7 +13086,7 @@ }, "file": "packages/gl-react/src/Visitor.js", "path": "packages/gl-react/src/Visitor.js", - "github": "https://github.com/gre/gl-react/blob/18537428f1c80c76e673d0ef7d89afdd5737d1ea/packages/gl-react/src/Visitor.js#L63-L63" + "github": "https://github.com/gre/gl-react/blob/511e78a0cf8fb8821eea6f1bc8c04342c2024f44/packages/gl-react/src/Visitor.js#L63-L63" }, "name": "onNodeDrawEnd", "kind": "function", diff --git a/packages/gl-react/src/TextureLoaderNDArray.js b/packages/gl-react/src/TextureLoaderNDArray.js index 8354ce6..f516aef 100755 --- a/packages/gl-react/src/TextureLoaderNDArray.js +++ b/packages/gl-react/src/TextureLoaderNDArray.js @@ -28,7 +28,6 @@ export default class TextureLoaderNDArray extends TextureLoader { this.textures.set(array, texture); } gl.bindTexture(gl.TEXTURE_2D, texture); - console.log("array get", array); drawNDArrayTexture(gl, texture, array); return texture; } diff --git a/packages/gl-react/src/helpers/drawNDArrayTexture.js b/packages/gl-react/src/helpers/drawNDArrayTexture.js index c172e3c..56bbe94 100644 --- a/packages/gl-react/src/helpers/drawNDArrayTexture.js +++ b/packages/gl-react/src/helpers/drawNDArrayTexture.js @@ -21,91 +21,6 @@ function convertFloatToUint8 (out, inp) { } export default (gl: WebGLRenderingContext, texture: WebGLTexture, array: NDArray) => { - /* - const cformat = gl.RGBA, ctype = gl.UNSIGNED_BYTE; - - let dtype = array.dtype; - let shape = array.shape.slice(); - if(shape.length < 2 || shape.length > 3) { - throw new Error("gl-react: Invalid ndarray, must be 2d or 3d"); - } - let type = 0, format = 0; - let packed = isPacked(shape, array.stride.slice()); - if(dtype === "float32") { - type = gl.FLOAT; - } else if(dtype === "float64") { - type = gl.FLOAT; - packed = false; - dtype = "float32"; - } else if(dtype === "uint8") { - type = gl.UNSIGNED_BYTE; - } else { - type = gl.UNSIGNED_BYTE; - packed = false; - dtype = "uint8"; - } - if(shape.length === 2) { - format = gl.LUMINANCE; - shape = [shape[0], shape[1], 1]; - array = ndarray(array.data, shape, [array.stride[0], array.stride[1], 1], array.offset); - } else if(shape.length === 3) { - if(shape[2] === 1) { - format = gl.ALPHA; - } else if(shape[2] === 2) { - format = gl.LUMINANCE_ALPHA; - } else if(shape[2] === 3) { - format = gl.RGB; - } else if(shape[2] === 4) { - format = gl.RGBA; - } else { - throw new Error("gl-react: Invalid shape for pixel coords"); - } - } else { - throw new Error("gl-react: Invalid shape for texture"); - } - //For 1-channel textures allow conversion between formats - if((format === gl.LUMINANCE || format === gl.ALPHA) && - (cformat === gl.LUMINANCE || cformat === gl.ALPHA)) { - format = cformat; - } - if(format !== cformat) { - throw new Error("gl-react: Incompatible texture format for setPixels"); - } - let size = array.size; - if(type === ctype && packed) { - //Array data types are compatible, can directly copy into texture - if(array.offset === 0 && array.data.length === size) { - console.log("no offset & exact size") - gl.texImage2D(gl.TEXTURE_2D, 0, cformat, shape[0], shape[1], 0, cformat, ctype, array.data); - } - else { - console.log("fix offset") - gl.texImage2D(gl.TEXTURE_2D, 0, cformat, shape[0], shape[1], 0, cformat, ctype, array.data.subarray(array.offset, array.offset+size)); - } - } else { - //Need to do type conversion to pack data into buffer - let pack_buffer; - if(ctype === gl.FLOAT) { - pack_buffer = pool.mallocFloat32(size); - } else { - pack_buffer = pool.mallocUint8(size); - } - let pack_view = ndarray(pack_buffer, shape, [shape[2], shape[2]*shape[0], 1]); - if(type === gl.FLOAT && ctype === gl.UNSIGNED_BYTE) { - convertFloatToUint8(pack_view, array); - } else { - ops.assign(pack_view, array); - } - console.log("else case") - gl.texImage2D(gl.TEXTURE_2D, 0, cformat, shape[0], shape[1], 0, cformat, ctype, pack_buffer.subarray(0, size)); - if(ctype === gl.FLOAT) { - pool.freeFloat32(pack_buffer); - } else { - pool.freeUint8(pack_buffer); - } - } - */ - var dtype = array.dtype; var shape = array.shape.slice(); var maxSize = gl.getParameter(gl.MAX_TEXTURE_SIZE); @@ -168,7 +83,6 @@ export default (gl: WebGLRenderingContext, texture: WebGLTexture, array: NDArray } else { buffer = array.data.subarray(array.offset, array.offset + size); } - console.log("texture", texture, shape, format, type) gl.texImage2D(gl.TEXTURE_2D, 0, format, shape[0], shape[1], 0, format, type, buffer); if(!packed) { pool.free(buf_store); diff --git a/tests/utils.js b/tests/utils.js index aa4e53f..1baf7f2 100755 --- a/tests/utils.js +++ b/tests/utils.js @@ -1,6 +1,6 @@ //@flow import React from "react"; -import {Visitor, TextureLoader, TextureLoaderRawObject, TextureLoaders} from "gl-react"; +import {Visitor, TextureLoader, TextureLoaders} from "gl-react"; import invariant from "invariant"; import type {Surface, Node} from "gl-react"; import type {Texture} from "gl-texture2d"; @@ -38,9 +38,9 @@ export const create = (el: React.Element<*>) => renderer.create(el, { createNodeMock }); type SurfaceCounters = { - onSurfaceDrawEnd:number, - onSurfaceDrawStart:number, - onSurfaceDrawSkipped:number, + onSurfaceDrawEnd: number, + onSurfaceDrawStart: number, + onSurfaceDrawSkipped: number, }; type NodeCounters = { @@ -113,11 +113,11 @@ export class CountersVisitor extends Visitor { this._counters.onNodeDrawStart++; this.getNodeCounters(node).onNodeDrawStart++; } - onNodeSyncDeps(node: Node, additions:*, deletions:*) { + onNodeSyncDeps(node: Node) { this._counters.onNodeSyncDeps++; this.getNodeCounters(node).onNodeSyncDeps++; } - onNodeDraw(node: Node, preparedUniforms: Array<*>) { + onNodeDraw(node: Node) { this._counters.onNodeDraw++; this.getNodeCounters(node).onNodeDraw++; } @@ -128,38 +128,38 @@ export class CountersVisitor extends Visitor { } export const red2x2 = ndarray(new Uint8Array([ - 255, 0, 0, 255, - 255, 0, 0, 255, - 255, 0, 0, 255, - 255, 0, 0, 255, - ]), [ 2, 2, 4 ]); + 255, 0, 0, 255, + 255, 0, 0, 255, + 255, 0, 0, 255, + 255, 0, 0, 255, +]), [ 2, 2, 4 ]); export const white3x3 = ndarray(new Uint8Array([ - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - 255, 255, 255, 255, - ]), [ 3, 3, 4 ]); + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, + 255, 255, 255, 255, +]), [ 3, 3, 4 ]); export const yellow3x3 = ndarray(new Uint8Array([ - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - 255, 255, 0, 255, - ]), [ 3, 3, 4 ]); + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, + 255, 255, 0, 255, +]), [ 3, 3, 4 ]); -export function createOneTextureLoader (makeTexture: (gl:any)=>WebGLTexture) { +export function createOneTextureLoader (makeTexture: (gl: any)=>WebGLTexture) { const textureId = Symbol("one-texture"); const counters = { constructor: 0, @@ -192,11 +192,11 @@ export function createOneTextureLoader (makeTexture: (gl:any)=>WebGLTexture) { ++counters.canLoad; return input === textureId; } - get(input: typeof textureId) { + get() { ++counters.get; return this.texture; } - load(input: typeof textureId) { + load() { ++counters.load; const promise = d.promise.then(() => { ++counters.createTexture; @@ -228,13 +228,24 @@ export function createNDArrayTexture (gl, ndarray) { drawNDArrayTexture(gl, texture, ndarray); return texture; } - -class FakeTextureLoader extends TextureLoaderRawObject { +class FakeTextureLoader extends TextureLoader { + textures: Array; + constructor(gl: WebGLRenderingContext) { + super(gl); + this.textures = []; + } + dispose() { + const {gl} = this; + this.textures.forEach(t => gl.deleteTexture(t)); + } canLoad (input: any) { return input instanceof FakeTexture; } - mapInput (ft: FakeTexture) { - return ft.getPixels(); + get (ft: FakeTexture) { + const array = ft.getPixels(); + const t = createNDArrayTexture(this.gl, array); + this.textures.push(t); + return t; } }