glutInit

glutInit

  glutInit is used to initialize the GLUT library.
    gultInit用于初始化GULT库

Usage

用法

void glutInit(int *argcp, char **argv);

(这两个参数是main函数的参数。)

argcp
    A pointer to the program's unmodified argc variable from main.

    来自主函数的未修改argc指针。

 Upon return, the value pointed to by argcp will be updated, because glutInit

extracts any command line options intended for the GLUT library.

    在return语句之前argcp指向的值会被更新,因为glutInit提取了所有请求的GLUT库
的命令行参数。

argv

    The program's unmodified argv variable from main.

    主函数的未修改argc指针。

 Like argcp, the data for argv will be updated because glutInit extracts any

command line options understood by the GLUT library.

    跟argcp类似,argv的数据也会更新,因为glutInit提取了可以被GLUT库理解的命令行选

项。

Description

描述

glutInit will initialize the GLUT library and negotiate a session with the window

system.

glutInit初始化GLUT库,并和窗口系统通信。

During this process, glutInit may cause the termination of the GLUT program with an

error message to the user if GLUT cannot be properly initialized.

在这一过程中,如果不能正确初始化,glutInit可能引起GLUT终端程序错误,并向用户发送消息

Examples of this situation include the failure to connect to the window system, the

lack of window system support for OpenGL, and invalid command line options.

这种情形包括连接窗口系统失败,详细的就是缺少窗口系统对OpenGL系统的支持,缺少命令行选项



glutInit also processes command line options, but the specific options parse are

window system dependent.

glut也加工处理命令行选项,但是特殊的选项分析是独立窗口系统的。


你可能感兴趣的:(init)