I’m developing a C program and I have a question about pointers and arrays.
I have the following array pointer:
GLuint *vboIds;
And the following function prototype:
void glGenBuffers(GLsizei n, GLuint *buffers);
The following statement is correct:
glGenBuffers(1, vboIds);
But I want to pass to glGenBuffers the second index of vboIds as second parameter for the function. I have put this:
glGenBuffers(1, &&vboIds[1]);
Is this correct?
Thanks.
or what Armen said,