Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Adds PIXI.Shader constructor args precision & attributeLocations
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Feb 22, 2018
1 parent f69da37 commit 54c7674
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pixi/core/Shader.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pixi.core;

import haxe.extern.EitherType;

@:native("PIXI.Shader")
extern class Shader {

Expand All @@ -14,8 +15,10 @@ extern class Shader {
* @param gl {WebGLRenderingContext} The current WebGL rendering context
* @param vertexSrc {String|Array<String>} The vertex shader source as an array of strings.
* @param fragmentSrc {String|Array<String>} The fragment shader source as an array of strings.
* @param {object} [attributeLocations] - A key value pair showing which location eact attribute should sit. e.g. {position:0, uvs:1}.
* @param {String} [precision] - The float precision of the shader. Options are 'lowp', 'mediump' or 'highp'.
*/
function new(gl:Dynamic, vertexSrc:EitherType<String, Array<String>>, framentSrc:EitherType<String, Array<String>>);
function new(gl:Dynamic, vertexSrc:EitherType<String, Array<String>>, framentSrc:EitherType<String, Array<String>>, ?attributeLocations:Dynamic, ?precision:String);

/**
*
Expand Down

0 comments on commit 54c7674

Please sign in to comment.