Exemple #1
0
        public WebGLShader CreateShader(object type)
        {
            var jsObject = (JSObject)Invoke("createShader", type);
            var wrapper  = new WebGLShader(jsObject);

            return(wrapper);
        }
Exemple #2
0
 public void ShaderSource(WebGLShader shader, string source) => Invoke("shaderSource", shader?.Handle, source);
Exemple #3
0
 public void CompileShader(WebGLShader shader) => Invoke("compileShader", shader?.Handle);
Exemple #4
0
 public void AttachShader(WebGLProgram program, WebGLShader shader) =>
 Invoke("attachShader", program?.Handle, shader?.Handle);