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.

The glClear function takes a single argument (mask) that is the bitwise OR of several values indicating which buffer is to be cleared.

The value to which each buffer is cleared depends on the setting of the clear value for that buffer.

相关查询: glClear viewport 缓冲区
最新查询:搂搂抱抱 电磁式 我们相爱了 南洋商报 小巧玲珑 角位移 刘梓宣 Begoniaceae 止血钳 线装书 政治理念 ׹ཬ 蚊炮船 天地八阳神咒经 汉殇帝康陵 令狐荣海 兴化小吃 可怜虫 斋烧鸭 DP 原来爱这么近 25_04_19.log 人Ļ 波特诺的怨诉 人民大学企业管理专业在职研究生 溧阳市 ����ũ�ִ�ѧ�����ѧ... 保外就医 花样滑冰 山形县 石米 不再哭泣 处之泰然 沐风香菇酱 点点滴滴 龙迹大陆 国际货币基金 杜仲地黄酒 自由基 盘牙水库 小铁匠 台湾地区 崔克 FUEL EX 宁波奥林匹克体育中心 未解决 地震科学数据 · 数据发布规范 5566棋牌 嘉定县 拉力赛 炒红薯玉米粒 人对人 咸阳市 巴士海峡 相对湿度 缝纫机 ֳ 有限性 首尾相接 交城县 意见不合 十二日 霍伊尔扑克 远道而来 罐头食品 minutus 心肌梗塞 足球队 都必须 收缩性 圆首刀 扬一益二 丹尼尔•皮特里 女主人公 热导率 德州城 三十年 侍中帖 苏庄草龙 巴西白间红尾蜘蛛 glClear
友情链接: 知道 电影 百科 好搜 问答 微信 值得买 巨便宜 天天特价 洛阳汽车脚垫 女装 女鞋 母婴 内衣 零食 美妆 汽车 油价 郑州 北京 上海 广州 深圳 杭州 南京 苏州 武汉 天津 重庆 成都 大连 宁波 济南 西安 石家庄 沈阳 南阳 临沂 邯郸 保定 温州 东莞 洛阳 周口 青岛 徐州 赣州 菏泽 泉州 长春 唐山 商丘 南通 盐城 驻马店 佛山 衡阳 沧州 福州 昆明 无锡 南昌 黄冈 遵义
© 2025 haodianxin 百科 豫ICP备14030218号-3 消耗时间:0.032秒 内存2.82MB