createTexture method

WebGLTexture createTexture()

Implementation

WebGLTexture createTexture() {
  startCheck('createTexture');
  Pointer<Uint32> vPointer = calloc<Uint32>();
  gl.glGenTextures(1, vPointer);
  checkError('createBuffer');
  int _v = vPointer.value;
  calloc.free(vPointer);
  return WebGLTexture(_v);
}