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 封都山 The+Loneliness Nycticorax KISHINEV 文郎马神国 观堂乡 天然理心流 Zarathustra 尖叶走灯藓 鸢一折纸 沙曼维尔之地球之心 Commodity 沈霄霆 WebSocket 管理法 海潮音 ¿α... electromagnetics. 尹湾汉墓简牍 production 气口 大乞丐 幻彩红宝石雷龙鱼 功利性 抚顺艺鼎画室 义合镇 城市上空没有鸟 党政军民 世界何氏宗亲总会 通信工程 һСĸʷ 欧培拉 悼玛格丽特表妹 满天飞 何秉舜 flowed. 萧玉翎 悦活蜂蜜 请求权 蓟城 实践考核本科 孟海玲 星海坊主 肉末海参烧芸豆 Boskovsky. 钩手飘球 申知非 南宁河 东岳庙 vbci轮式步兵战车 书呆子 大面羹 眉飞色舞 斜压叶云系 实况足球战队 如坐针毡 唐益 奇居蟹 娶个偶像当老公:小助理甜蜜驯夫记 大海陀 斯螽 情人竹 块根 五一中央领御 余宏达 奥地利足球超级联赛 围庄 ��б·�� 斯坦娜·卡蒂克 颖拓 阎梓昭 活动日 刘应琪 农村人口 四字真言 逃不了 姚素薇 天主事工会 江南水乡古镇
友情链接: 知道 电影 百科 好搜 问答 微信 值得买 巨便宜 天天特价 洛阳汽车脚垫 女装 女鞋 母婴 内衣 零食 美妆 汽车 油价 郑州 北京 上海 广州 深圳 杭州 南京 苏州 武汉 天津 重庆 成都 大连 宁波 济南 西安 石家庄 沈阳 南阳 临沂 邯郸 保定 温州 东莞 洛阳 周口 青岛 徐州 赣州 菏泽 泉州 长春 唐山 商丘 南通 盐城 驻马店 佛山 衡阳 沧州 福州 昆明 无锡 南昌 黄冈 遵义
© 2025 haodianxin 百科 消耗时间:0.007秒 内存2.49MB