• 1.摘要
  • 2.基本信息
  • 3.相关解释
  • 4.本质概念理解

glLoadIdentity

基本信息

  • 外文名

    glLoadIdentity

  • 正确解释

    类似于一个复位操作

  • 函数原型

    void glLoadIdentity(void)

  • 属于

    glLoadIdentity更加效率

相关解释

The glLoadIdentity function replaces the current matrix with the identity matrix.

正确解释:将当前的用户坐标系的原点移到了屏幕中心:类似于一个复位操作

错误解释:glLoadIdentity该函数的功能是重置当前指定的矩阵为单位矩阵.

函数原型:void glLoadIdentity( void);

Remarks(备注:)The glLoadIdentity function replaces the current matrix with the identity matrix. It is semantically equivalent to calling glLoadMatrix with the identity matrix

glLoadIdentity该函数的功能是重置当前指定的矩阵为单位矩阵.在语义上,其等同于用单位矩阵调用glLoadMatrix。

but in some cases it is more efficient.

但是,在一些情况下, glLoadIdentity更加效率。

The following functions retrieve information related to glLoadIdentity:

下面是一些与 glLoadIdentity相关的函数信息:

glGet with argument GL_MATRIX_MODE

glGet with argument GL_MODELVIEW_MATRIX

glGet with argument GL_PROJECTION_MATRIX

glGet with argument GL_TEXTURE_MATRIX

Error Codes( 错误代码):

The following is the error code and its condition.

GL_INVALID_OPERATION

glLoadIdentity was called between a call to glBegin and the corresponding call to glEnd.