[Interactive Computer Graphics --a top-down approach with opengl]
bit.c
错误:窗口大小改变后,点鼠标左键,光标处的贴图位置不再准确。
修正:程序中宽和高(w和h)搞错了。
第15行,ww变量改成hh
第37行,ww=w改成hh=h
第48行,glRasterPos2i(x, ww-y);改成glRasterPos2i(x, hh-y);
[Interactive Computer Graphics --a top-down approach with opengl]
bit.c
错误:窗口大小改变后,点鼠标左键,光标处的贴图位置不再准确。
修正:程序中宽和高(w和h)搞错了。
第15行,ww变量改成hh
第37行,ww=w改成hh=h
第48行,glRasterPos2i(x, ww-y);改成glRasterPos2i(x, hh-y);