当前位置:网站首页>【OpenGL】GLES20.glClear
【OpenGL】GLES20.glClear
2022-07-28 02:40:00 【Back end coder】
【OpenGL】glClear
The function prototype
void glClear(GLbitfield mask);
Parameter description
GLbitfield: have access to | Operator combines different buffer flag bits , Indicates the buffer that needs to be cleared , for example glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) Indicates to clear the color buffer and depth buffer , The following flag bits can be used
GL_COLOR_BUFFER_BIT: Currently writable color buffer
GL_DEPTH_BUFFER_BIT: Deep buffer
GL_ACCUM_BUFFER_BIT: Cumulative buffer
GL_STENCIL_BUFFER_BIT: Template buffer
Function description
glClear() The function clears the value with the current buffer , That is to say glClearColor perhaps glClearDepth、glClearIndex、glClearStencil、glClearAccum Wait for the value specified by the function to clear the specified buffer , You can also use glDrawBuffer Clear multiple color caches at a time . such as :
glClearColor(0.0,0.0,0.0,0.0);
Indicates that the clear color is set to black
glClear(GL_COLOR_BUFFER_BIT);
Indicates that the task of clearing the whole window to black has been actually completed ,glClear() The only parameter of indicates the buffer that needs to be cleared .
Pixel check 、 Cutting inspection 、 Jitter and cache write masking will affect glClear The operation of , among , The clipping range limits the area to be cleared , and glClear The command also ignores alpha function 、 Fusion function 、 Logical operation 、 Templates 、 Texture mapping and z cache ;
边栏推荐
- Lock mechanism in MySQL database InnoDB storage engine (glory Collection Edition)
- [advanced ROS] Lecture 9 robot model motion based on rviz and arbotix control
- This operation may not be worth money, but it is worth learning | [batch cutting of pictures]
- Eredi reappeared at the digital China Summit and continued to deepen the protection of green waters and mountains with science and technology
- Leetcode hot topic Hot 100 - > 2. Add two numbers
- Chapter 3 business function development (batch export of market activities, Apache POI)
- Emotional drama in the world Zhou Bingkun lost his job because he saw Tu Zhiqiang and was shot
- What is eplato cast by Plato farm on elephant swap?
- OBS键盘插件自定义diy
- 正则表达式
猜你喜欢

Design of edit memory path of edit box in Gui
![[Yugong series] July 2022 go teaching course 019 - for circular structure](/img/40/b4e673de0462c3dd6ca8b8fb513914.png)
[Yugong series] July 2022 go teaching course 019 - for circular structure

正则表达式

Alipay applet authorization / obtaining user information

Leetcode hot topic Hot 100 - > 2. Add two numbers

Chapter 3 business function development (batch export of market activities, Apache POI)

Special network technology virtual host PHP version setting

How MySQL uses indexes (glory Collection Edition)
![This operation may not be worth money, but it is worth learning | [batch cutting of pictures]](/img/e8/a34e471b0089f8085b140c74b5c01f.jpg)
This operation may not be worth money, but it is worth learning | [batch cutting of pictures]

Detailed explanation of the lock algorithm of MySQL lock series (glory Collection Edition)
随机推荐
功能测试和非功能测试区别简析,上海好口碑软件测试公司推荐
怎么简单实现菜单拖拽排序的功能
【LeetCode】13. Linked List Cycle·环形链表
Alipay applet authorization / obtaining user information
Notes for the fourth time of first knowing C language
MySQL explain (glory Collection Edition)
Network must know topics
JS event loop synchronous task, asynchronous task (micro task, macro task) problem analysis
并发编程的三大核心问题(荣耀典藏版)
【信号去噪】基于卡尔曼滤波实现信号去噪附matlab代码
基于FPGA的64位8级流水线加法器
Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report
How to put app on the app store?
[understanding of opportunity -53]: Yang Mou stands up and plots to defend himself
MySQL blocking monitoring script
JVM tuning -xms -xmx -xmn -xss
[hcip] BGP Foundation
MySQL high availability and master-slave synchronization
pytorch优化器设置
Unity saves pictures to albums and rights management