当前位置:网站首页>【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 ;
边栏推荐
- Email security report in the second quarter: email attacks have soared fourfold, and well-known brands have been used to gain trust
- Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report
- Mysql Explain 详解(荣耀典藏版)
- Read Plato & nbsp; Eplato of farm and the reasons for its high premium
- 别人发你的jar包你如何使用(如何使用别人发您的jar包)
- "Risking your life to upload" proe/creo product structure design - seam and buckle
- Newline required at end of file but not found.
- 初识C语言 -- 结构体,分支和循环语句
- 修改MySQL密码的四种方法(适合初学者)
- Find - block search
猜你喜欢

Use of Day6 functions and modules

How is insert locked in MySQL? (glory Collection Edition)

Understand the "next big trend" in the encryption industry - ventures Dao

正则表达式

MySQL是如何利用索引的(荣耀典藏版)

Notes for the fourth time of first knowing C language

Maskedauutoencoders visual learner cvpr2022

树的孩子兄弟表示法

「冒死上传」Proe/Creo产品结构设计-止口与扣位

【LeetCode】13. Linked List Cycle·环形链表
随机推荐
Use of Day6 functions and modules
MySQL数据库InnoDB存储引擎中的锁机制(荣耀典藏版)
The virtual host website cannot access the self-test method
作业7.27 IO进程
MySQL锁系列之锁算法详解(荣耀典藏版)
【ROS进阶篇】第九讲 基于Rviz和Arbotix控制的机器人模型运动
Digital empowerment and innovation in the future: hese eredi appears at the 5th Digital China Construction Summit
windbg
[advanced ROS chapter] Lecture 10 gadf integrated simulation process and examples based on gazebo
[hcip] BGP features
MYSQL解决死锁之路 - 常见 SQL 语句的加锁分析
Three core issues of concurrent programming (glory Collection Edition)
[leetcode] 13. linked list cycle · circular linked list
From prediction to decision-making, Chapter 9 Yunji datacanvas launched the ylearn causal learning open source project
POC simulation attack weapon - Introduction to nucleus (I)
并发编程的三大核心问题(荣耀典藏版)
Learn this trick and never be afraid to let the code collapse by mistake
使用BigDecimal类型应该避免哪些问题?(荣耀典藏版)
POC模拟攻击利器 —— Nuclei入门(一)
Representation of children and brothers of trees