gluProject与gluUnProject
来源:互联网 发布:mrj频道 知乎 编辑:程序博客网 时间:2024/06/04 00:52
gluProject
The gluProject function maps object coordinates to window coordinates.
int gluProject( GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *winx, GLdouble *winy, GLdouble *winz );
Parameters
- objx, objy, objz
- The object coordinates.
- modelMatrix
- The current modelview matrix (as from a glGetDoublev call).
- projMatrix
- The current projection matrix (as from a glGetDoublev call).
- viewport
- The current viewport (as from a glGetIntegerv call).
- winx, winy, winz
- The computed window coordinates.
Remarks
The gluProject function transforms the specified object coordinates into window coordinates usingmodelMatrix, projMatrix, and viewport. The result is stored inwinx, winy, and winz. A return value of GL_TRUE indicates success, and GL_FALSE indicates failure.
gluUnProject
The gluUnProject function maps window coordinates to object coordinates.
int gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble modelMatrix[16], const GLdouble projMatrix[16], const GLint viewport[4], GLdouble *objx, GLdouble *objy, GLdouble *objz );
Parameters
- winx, winy, winz
- The window coordinates to be mapped.
- modelMatrix
- The modelview matrix (as from a glGetDoublev call).
- projMatrix
- The projection matrix (as from a glGetDoublev call).
- viewport
- The viewport (as from a glGetIntegerv call).
- objx, objy, objz
- The computed object coordinates.
Return Values
If the function succeeds, the return value is GL_TRUE.
If the function fails, the return value is GL_FALSE.
Remarks
The gluUnProject function maps the specified window coordinates into object coordinates usingmodelMatrix, projMatrix, and viewport. The result is stored inobjx, objy, and objz.
Requirements
源自:http://blog.sina.com.cn/s/blog_4bb59dc401016gwr.html
- gluProject与gluUnProject
- gluProject vs gluUnProject
- GluProject and gluUnProject code代码
- gluProject 和 gluUnproject 的详解
- OpenGL三维坐标与二维坐标:gluProject 和 gluUnproject 的详解
- OpenGL 逆变换和模拟变换 gluUnProject(),gluProject()
- 《高效学习OpenGL》 之 逆变换和模拟变换 gluUnProject(),gluProject()
- 【OPENGL】关于glReadPixels,gluUnProject,gluProject三个函数的使用方法【附源码】
- 【OPENGL&WEBGL】将OpenGL里的gluProject和gluUnProject函数web化
- gluUnProject
- gluUnProject
- gluUnProject()函数得到的是什么坐标
- OpenGL中逆变换和模拟变换gluUnProject
- OpenGL中逆变换和模拟变换gluUnProject
- gluUnProject glUnProject4包含w值 glProject求取屏幕z坐标
- 与
- 与
- “” 与 “”
- linux内核--使用内核队列实现ringbuffer(续)
- Extensible XML authoring
- Servlet详解---取得其他内置对象
- ffmpeg解码视频
- Sharepoint 2010 用VS定制Master,并且每个Web应用同一个Master
- gluProject与gluUnProject
- Android 按两次返回键退出
- linux下jetty的安装
- 串的模式匹配算法
- 黑马程序员 2014年2月25日 写给自己。
- IOS开发 UIWebView使用详解(1)
- 树的存储结构
- 开源学习 百度推送实战项目 友聊 (一)
- EJB(Enterprize Java Beans)