So this is probably a simple question:
But how come sometimes I see it like this:
GLuint vbuffer; glGenBuffers(1, &vbuffer); glBindBuffer(GL_ARRAY_BUFFER, vbuffer);
but when done in multiples:
GLuint VBOs glGenBuffers(2, VBOs); glBindBuffer(GL_ARRAY_BUFFER, VBOs);
Im curious why glGenBuffers has a & in the first one, and not in the second case. Is it because arrays are always passed by reference? and is vbuffer a POINTER to something or just a simple data structure (GLint in this case).