PDA

View Full Version : move object with a mouse



adityask
03-13-2002, 07:28 PM
hello,
can somebody tell me the code to move a 3d object ( which has been selected ) with a mouse without affecting other objects on the screen?i am using MFC with OpenGL.

---aditya

Gavin
03-14-2002, 01:22 AM
So are you asking for selection code or translation code?

PushMatrix
Translate
draw_object
PopMatrix