0 I'm trying to left click and drag any 3d Object and if i let go of it, it should stay in its new position, how would i achieve this? The 3d object is loaded from the draw function that i have in a header file. Someone said i should be using glutMouseFunc or glutMotionFunc. void MouseClickCallbackFunction(int button, int state, int x, int y) if (state == GLUT_DOWN) if (button == GLUT_LEFT) std::cout << "Left " << x << " " << y <<std::endl; leftClick.x = x; leftClick.y = y; else if (button == GLUT_RIGHT_BUTTON) std::cout << "Right " << x << " " << y << std::endl; rightClick.x = x; rightClick.y = y; theGame->mouseClicked(button, state, x, y); glutPostRedisplay(); /* function MouseMotionCallbackFunction() * Description: * - this is called when the mouse is clicked and moves */ void MouseMotionCallbackFunction(int x, int y) theGame->mouseMoved(x, y)...