请输入您要查询的百科知识:

 

词条 gluProject
释义

gluProject

NAME

gluProject -- map object coordinates to window coordinates

C SPECIFICATION

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

Specify the object coordinates.

modelMatrix

Specifies the current modelview matrix (as from a glGetDoublev call).

projMatrix

Specifies the current projection matrix (as from a glGetDoublev call).

viewport

Specifies the current viewport (as from a glGetIntegerv call).

winx, winy, winz

Return the computed window coordinates.

DESCRIPTION

gluProject transforms the specified object coordinates into window coordinates using modelMatrix, projMatrix, and viewport. The result is stored in winx, winy, and winz. A return value of GL_TRUE indicates success, and GL_FALSE indicates failure.

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/11/15 17:57:38