Contoh Segitiga OpenGL

glBegin(GL_TRIANGLES);
    glColor3f(1.0f, 0.2f, 0.3f);
    glVertex3f( 0.0f,  0.5f, 0.0f);
    glVertex3f( 0.5f, -0.5f, 0.0f);
    glVertex3f(-0.5f, -0.5f, 0.0f);
glEnd();
Atduyar