public WebGLShader CreateShader(object type) { var jsObject = (JSObject)Invoke("createShader", type); var wrapper = new WebGLShader(jsObject); return(wrapper); }
public void ShaderSource(WebGLShader shader, string source) => Invoke("shaderSource", shader?.Handle, source);
public void CompileShader(WebGLShader shader) => Invoke("compileShader", shader?.Handle);
public void AttachShader(WebGLProgram program, WebGLShader shader) => Invoke("attachShader", program?.Handle, shader?.Handle);