0
마우스를 움직일 때 XZ 평면에서보기를 이동하려고합니다. 마우스 좌표 x 및 y의 선형 함수 인 mlon
및 mlat
입니다. 내 주요 기능에 glutPassiveMotionFunc(mouse_motion);
있습니다. XZ 평면에서 창보기를 이동하려면 어떻게해야합니까? 설명이 뭐야?마우스를 사용하여 opengl의 XZ 평면에서 창을 이동하는 방법
void mouse_motion(int x, int y) {
/* To be completed */
x=lon+mlon;
y=lat+mlat;
} // mouse_motion()