Solved programming problem

Draw T in OpenGL

Source code

void drawT()

{

    glColor3f(1.0f, 1.0f, 1.0f); // GREEN RECTANGLE

    glBegin(GL_LINE_LOOP); // It can be any type Gl_POINT,_LINE

    glVertex2d(-10,10);

    glVertex2d(10,10);

    glVertex2d(10,7);

    glVertex2d(3,7);

    glVertex2d(3,0);

    glVertex2d(-3,0);

    glVertex2d(-3,7);

    glVertex2d(-10,7);

    glVertex2d(-10,10);

    glEnd();

}

 

// call this function from display()

drawT();
Join the discussion

Add your comment

1 previous comment

shoully

Ctgcgj [url=https://bestadalafil.com/]Cialis[/url] Achat Cialis Au Quebec Xegclx <a href="https://bestadalafil.com/">buying cheap cialis online</a> Qjmdun Cialis Online Billig Generic Doryx 100mg Bacterial Infections Direct Free Consultation https://bestadalafil.com/ - cialis online ordering Bojzhp change in structure and function of a cell as it matures specialization