[wpdm_package id=’1187′] Sample Output – To compile the above program in ubuntu terminal – # g++ -lGL -lGLU -lglut Rotating_Square.cpp # ./a.out
[wpdm_package id=’1185′] Sample Input – Create a clock using timer function, clock should show hour, minute and second hands. Sample Output – To compile the…
[wpdm_package id=’1260′] Sample Input – Translate, Rotate and Scale a Rectangle using Matrix Push and Pop. Sample Output – To compile the above program in…
[wpdm_package id=’1266′] Sample Input – Translate, Rotate and Scale a Rectangle using Opengl functions. Sample Output – Translate Function [sourcecode lang=”cpp”] glTranslatef(-200,-50,0); [/sourcecode] Rotate Function…
[wpdm_package id=’1258′] Sample Input – Write Characters using glutBitmapCharacter(font, character) . Sample Output – [sourcecode lang=”cpp”] string s="TechToFun"; for(size_t i=0;i<s.size();i++){ glutBitmapCharacter(GLUT_BITMAP_TIMES_ROMAN_24, s[i]); } [/sourcecode] To…
[wpdm_package id=’1256′] Sample Input – Write a program to draw line with stipple patterns. Sample Output – [sourcecode lang=”cpp”] glEnable(GL_LINE_STIPPLE); glLineStipple(1,0x00ff); glBegin(GL_LINES); glVertex2f(100,100); glVertex2f(600,600); glEnd();…
[wpdm_package id=’1254′] Sample Input –Write a program to draw circle approximating it with polygons of increase sides. ‘+’ and ‘-‘ should be used to increase…
[wpdm_package id=’1248′] Sample Input –Draw a circle using Midpoint Circle Drawing Algorithm. The center of circle should be accepted using mouse clicks. Use 1 to…
[wpdm_package id=’1246′] Sample Input –Draw a circle using the naive polar form of circle. The center of circle should be accepted using mouse clicks. Use…
[wpdm_package id=’1244′] Sample Input –Draw a circle using the naive cartesian form of circle. The center of circle should be accepted using mouse clicks. Use…