createFramebuffer method

Framebuffer createFramebuffer()

Implementation

Framebuffer createFramebuffer(){
  startCheck('createFramebuffer');
  Pointer<Uint32> id = calloc<Uint32>();
  gl.glGenFramebuffers(1, id);
  checkError('createFramebuffer');
  int _v = id.value;
  calloc.free(id);
  return Framebuffer(_v);
}