hi,
I am receiving a bitmap of size 800 by 600 with RGB 24 bits. When I receive this bitmap from the other machine, I need to bind it to gl widget.
what crossed my mind is to do the following, however I am not quite sure if it is correct:
initializeGLFunctions();
GLuint vboId;
glBindBuffer(GL_ARRAY_BUFFER, vboId);
glBufferSubData(GL_ARRAY_BUFFER, 0, 800 * 600 * 3 * sizeof(int), &buffer[0]);
glBindBuffer(GL_ARRAY_BUFFER, 0);
is this the right way to bind bitmap to gl?
I would also thank if you mention how to declare the vboId in the second line.