- const GLfloat squareVertices[] = {
- -0.1f, -0.1f,
- 0.1f, -0.1f,
- -0.1f, 0.1f,
- 0.1f, 0.1f,
- };
- glVertexPointer(2, GL_FLOAT, 0, squareVertices);
- glEnableClientState(GL_VERTEX_ARRAY);
- glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
OpenGL 3.0: glBegin -> VBOModerator: DGL-Team
|