简单的问题:
这段代码是如何工作的?
glBindTexture(GL_TEXTURE_2D, texture_);
glColor4f(1,1,1,1);
glBegin(GL_QUADS);
glTexCoord2f(0, 1); glVertex2f(left_, top_);
glTexCoord2f(1, 1); glVertex2f(right_, top_);
glTexCoord2f(1, 0); glVertex2f(right_, bottom_);
glTexCoord2f(0, 0); glVertex2f(left_, bottom_);
glEnd();
如何使用顶点数组将代码转换为现代OpenGL?