Computer Graphics – 3. Two Dots

[wpdm_package id=’1275′] Sample Output – [sourcecode lang=”c”] #include<GL/glut.h> void display(void){ glClear(GL_COLOR_BUFFER_BIT); glColor3d(0.0,0.0,0.0); glBegin(GL_POINTS), glVertex2d(25.0,25.0), glEnd(); glColor3d(1.0,0.0,0.0); glBegin(GL_POINTS), glVertex2d(475,475), glEnd(); glFlush(); } int main(int argc,char** argv){…