opengl 窗口坐标转换为物体坐标
<br />GLint viewport[4]; <br /> GLdouble modelview[16]; <br /> GLdouble projection[16]; <br /> GLfloat winX, winY, winZ; <br /> GLdouble posX, posY, posZ; <br /> glGetIntegerv(GL_VIEWPORT, viewport); <br /> glGetDoublev(GL_MODELVIEW_MATRIX, modelview);
转载
2011-04-16 09:21:00 ·
2464 阅读 ·
1 评论