I want to port a little game from OpenGL 2.0 to the more current version 4.6 of OpenGL. In the code a few quads are draw like this:
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f);
glVertex3f(x, y + (float)height, 0.0f);
glTexCoord2f(1.0f, 0.0f);
glVertex3f(x + (float)width, y + (float)height, 0.0f);
glTexCoord2f(1.0f, 1.0f);
glVertex3f(x + (float)width, y, 0.0f);
glTexCoord2f(0.0f, 1.0f);
glVertex3f(x, y, 0.0f);
glEnd();
As far as I know this is not possible anymore in OpenGL 4.6. Strangely Googling that topic did not yield any results. Also here on StackOverflow I could not find any examples how to draw a simple quad in OpenGL 4.6.
Can anyone show me how to achieve that (simple?) task in OpenGL 4.6?