glClear -- 清除viewport的缓冲区

void glClear(GLbitfield mask);

可以使用 | 运算符组合不同的缓冲标志位,表明需要清除的缓冲,例如glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)表示要清除颜色缓冲以及深度缓冲,可以使用以下标志位

GL_COLOR_BUFFER_BIT: 当前可写的颜色缓冲

GL_DEPTH_BUFFER_BIT: 深度缓冲

GL_ACCUM_BUFFER_BIT: 累积缓冲

GL_STENCIL_BUFFER_BIT: 模板缓冲

Remarks

The glClear function sets the bitplane area of the window to values previously selected by glClearColor, glClearIndex, glClearDepth, glClearStencil, and glClearAccum. You can clear multiple color buffers simultaneously by selecting more than one buffer at a time using glDrawBuffer.

The pixel-ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of glClear. The scissor box bounds the cleared region. The alpha function, blend function, logical operation, stenciling, texture mapping, and z-buffering are ignored by glClear.

刚刚查询:Cyanide Ditarem Curculio Elisabeth Billboard fatigue Natalie Murders Douglas G-DRAGON ppbes 含元殿 Causeway Maebell Incorporated Bertrand-Fran amoeboid Belgrade Milena Villamil displacement glClear Motorola Champion 佛教史 radiation N-UNCOUNTBiotechnology praised 佛山佛斯弟足球俱乐部 终止子 年代初 东京FILMeX国际电影节 摇摆舞 抓木器 田径队 Welcome 一等功 艾略特 怀孕征兆 路宝 生物制剂 查理二世 高墟镇 归国人员 包头市 社会地位 华欣 industry 红列斯特奶酪 商业部 subphylum After Effects CS4完全剖析 Agrobacterium 松散型 soldiers 执政党 宗庙 无能为力 Wheatley stromal 北京医科大学 Boarding 台湾省 活不明白(珍藏版) Thrillogy 南海石斑鱼 专用权 灵光郡 灰沙砖 发愤忘食 多变量的正交多项式 亦云阁 守望相助 小手拍拍(3D版) 此消彼长 王小竞 安沛省 不屈服 yunnanensis 王和平写意花鸟画精品集
友情链接: 知道 电影 百科 好搜 问答 微信 值得买 巨便宜 天天特价 洛阳汽车脚垫 女装 女鞋 母婴 内衣 零食 美妆 汽车 油价 郑州 北京 上海 广州 深圳 杭州 南京 苏州 武汉 天津 重庆 成都 大连 宁波 济南 西安 石家庄 沈阳 南阳 临沂 邯郸 保定 温州 东莞 洛阳 周口 青岛 徐州 赣州 菏泽 泉州 长春 唐山 商丘 南通 盐城 驻马店 佛山 衡阳 沧州 福州 昆明 无锡 南昌 黄冈 遵义
© 2026 haodianxin 百科 消耗时间:0.002秒 内存0.8MB