Closed tehcyx closed 6 years ago
I think it should be possible. Since the parameter type is *uint32
, you'll need to take address of the first element of the array rather than the entire array:
gl.GenBuffers(int32(NUM_BUFFERS), &m.vbo[0])
Well, you're right. That got rid of the error. I'll see that it works as well, as soon as I finish up that mesh generation.
Hi,
I'm trying to initialize multiple buffers in one call, passing an array to the GenBuffers function, is this not possible in the port or am I just doing something wrong?
resulting in error:
I've been doing this successfully in C.