Uncategorized

Graphic OpenGL in C++ Research Paper

Graphic OpenGL in C++ Research Paper

Using Microsoft Visual Studio 2010 programUpdate: Do not use glRotate, glTranslate or glScale. Youmustuse formulas like those provided in my example programs. Also, if you use programs created by others, please give them credit in the opening lines of your programs. Using opengl display a rectangle and permit a user to scale, rotate, and translate it using keyboard and mouse events.Pressing the s key should display a dotted line between the current mouse position and the current center of the rectangle. Moving the mouse towards the center should scale the rectangle down, away from the center should scale the rectangle up. The mode should be exited by a mouse click and the rectangle should remain scaled.Pressing the r key should display a dotted line between the current mouse position and the current center of the rectangle. Moving the mouse clockwise/counterclockwise should rotate the rectangle in the same direction. The mode should be exited by a mouse click and the rectangle should remain rotated.Pressing the g key should not display a dotted line between the current mouse position and the current center of the rectangle. The rectangle should move along with the mouse. The mode should be exited by a mouse click and the rectangle should remain translated.The project will be evaluated based upon meeting the requirements specified above. Extra credit will be given for additional functions you design and implement. Post a zipped projectusing the submit button on this page. Demos will be given in class. Research: research glutMouse(), glutKeyboardFunc() andglutMotionFunc() in the Red Book or online Look, but do not copy directly,online that perform similar functions

Is this the question you were looking for? If so, place your order here to get started!

×