PDA

View Full Version : move object with a mouse



adityask
03-13-2002, 08:06 AM
hello,
can somebody tell me the code to move a 3d
object (among different objects on the screen) with a mouse? i am using MFC with OpenGL.
thanks in advance.
---aditya

Sundy
03-13-2002, 10:46 AM
Well, Depends on how strong the mouse is, viagra could help sometimes http://www.opengl.org/discussion_boards/ubb/smile.gif but I do not know the how effective viagra is on mice...

-Sundar

iNsaNEiVaN
03-13-2002, 12:01 PM
This isn't an OpenGL topic but ill try to help anyways.

Just make a function to reassign all the vertices of a polygon to coords relative to the mouse.