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 缓冲区
最新查询:髋关节 十之八九 Ŵ 姜汁清香鸭 指示精神 Functional 加利利海 博士点 Invesco 四子王旗 H59ͭ 上兰村志 E.Strasburger 丹朱岭旅游景区 extensively 托忒克·端方 葱拌章鱼 Manoectochila 乳酸恩诺沙星 徐行镇 格吕内瓦尔德 ReikajenFROM Traditional 道格拉斯·戈登 Ʊש 营养繁殖 枸杞松仁鸡丁 呼吸作用 Witawat 首都卫生发展科研专项管理办法 Stephanie 大石桥 列夫·达维多维奇·朗道 担杆岛 Legrand 总管府 monastyr 自然而然 Erica Ellyson Scholarship 大界王 梅村镇 opposite 身先士卒 郭蓉华 韩存利 ͨ 湛江文学 蛋白质类药物 下草湾遗址 Thunder 仗势欺人 雷雨交加 84影库 Amblypygi 夺淮入海 确实能 总督府 变异系数 担保人 冈底斯 Bleeding 三边委员会 蛇血 碳酸氢根 石森达幸 兴国安邦 刘胜 影碟机 Westwood 远古翔兽 番茄西葫芦饼 ��ͷ�л���������Ⱦ perineal 台湾地区 二等功 显微图 辨别力 glClear
友情链接: 知道 电影 百科 好搜 问答 微信 值得买 巨便宜 天天特价 洛阳汽车脚垫 女装 女鞋 母婴 内衣 零食 美妆 汽车 油价 郑州 北京 上海 广州 深圳 杭州 南京 苏州 武汉 天津 重庆 成都 大连 宁波 济南 西安 石家庄 沈阳 南阳 临沂 邯郸 保定 温州 东莞 洛阳 周口 青岛 徐州 赣州 菏泽 泉州 长春 唐山 商丘 南通 盐城 驻马店 佛山 衡阳 沧州 福州 昆明 无锡 南昌 黄冈 遵义
© 2025 haodianxin 百科 豫ICP备14030218号-3 消耗时间:0.023秒 内存2.82MB