make a item and motion in openGL using C++