Month: November 2013

Computer Graphics – Lab 21 Translate/Rotate/Scale using opengl Functions

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 [sourcecode lang=”cpp”] glRotatef(45,0,0,1); [/sourcecode] Scale Function [sourcecode… Read more »

Computer Graphics – Lab 20 Write Character using Bitmap

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 compile the above program in ubuntu terminal… Read more »