Beispiel #1
0
        public WebGLTexture CreateTexture()
        {
            var jsObject = (JSObject)Invoke("createTexture");
            var wrapper  = new WebGLTexture(jsObject);

            return(wrapper);
        }
Beispiel #2
0
 public void BindTexture(object target, WebGLTexture texture) => Invoke("bindTexture", target, texture?.Handle);