Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

opengl triangle example

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();
 
PREVIOUS NEXT
Tagged: #opengl #triangle
ADD COMMENT
Topic
Name
3+2 =