Definition at line 306 of file View.h. References mIs2D, mView2D, and mView3D. 00307 { 00308 OGLIMAGE* oglIm = mIs2D ? mView2D->im : mView3D->im; 00309 FLOAT x = (FLOAT)wndX; 00310 FLOAT y = (FLOAT)wndY; 00311 if (oglIm == 0) 00312 return; 00313 if (mIs2D) 00314 { 00315 viewSys.WndToIm(mView2D, &x, &y); 00316 imX = (int) x; 00317 imY = (int) (oglIm->h-y); 00318 } 00319 else 00320 { 00321 view3DSys.WndToIm(mView3D, &x, &y); 00322 imX = (int) x; 00323 imY = (int) (oglIm->h-y); 00324 } 00325 }
|