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也加工处理命令行选项,但是特殊的选项分析是独立窗口系统的。


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值