To make a Bouncing Ball in OpenGL

To make a Bouncing Ball in OpenGL

glTranslatef :- to translate a given figure
glTranslatef(tx,ty,tz);  
 where tx,ty,tz translation along x,y,z axis

glScalef:- to scale a given image
glScalef(sx,sy,sz);  
 where sx,sy,sz scaling vector for a given figure


Program:-

Comments