11 OpenGL Program to Perform 2D Transformation: 1) Reflection and 2)Shearing on a Polygon

Program: #include<GL/glut.h> #include<math.h> double parr[8]; void init() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0,0,...
Read More

10 Program to draw hill using Bresenham Line Drawing Algorithm and fill color using Seed fill Algorithm in OpenGL

Program: #include<GL/glut.h> void init() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(1,1,1,0); gluOrtho2D(0,500,0,500); } int l...
Read More

9 OpenGL Program for 2D Transformation 1) Translation 2) Scaling 3) Rotation on a Polygon

Program: #include<GL/glut.h> #include<math.h> double parr[8]; void init() { glClear(GL_COLOR_BUFFER_BIT); glClearColor(0,0,...
Read More