I am developing a program in C 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 true:
glGenBuffers(1, vboIds);
But I want to go to the glGenBufferssecond vboIds index as the second parameter to the function. I added the following:
glGenBuffers(1, &&vboIds[1]);
Is it correct?
Thank.
source
share