public static uint CreateBuffer() { uint buffer; GlNative.CreateBuffers(1, &buffer); return(buffer); }
public static uint[] CreateFramebuffers(int count) { var framebuffers = new uint[count]; fixed(uint *firstFramebuffer = framebuffers) GlNative.CreateBuffers(count, firstFramebuffer); return(framebuffers); }
public static uint[] CreateBuffers(int count) { var buffers = new uint[count]; fixed(uint *firstBuffer = buffers) GlNative.CreateBuffers(count, firstBuffer); return(buffers); }