[英]glClear [ GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT and GL_STENCIL_BUFFER_BIT ]
I'm learning these tutorials for OpenGL
in http://LearnOpenGL.com and I faced with this function glClear
( here at the Rendering title ). 我学习这些教程为
OpenGL
在http://LearnOpenGL.com和我碰到这样的功能glClear
( 这里在渲染标题)。 Scince I'm still learning Eng as well I have trouble with the world " clear " in this function. 因为我仍然在学习英语,所以我对使用此功能的世界“清除”感到困难。 (1) What does it mean to clear a buffer bit?
(1)清除缓冲区位是什么意思?
(2) what's the meaning of the word " clear " in these three values below? (2)以下这三个值中的“清除”一词是什么意思?
GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT and GL_STENCIL_BUFFER_BIT
From here: https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glClear.xml 从这里: https : //www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glClear.xml
glClear
sets the bitplane area of the window to values previously selected byglClearColor
,glClearIndex
,glClearDepth
,glClearStencil
, andglClearAccum
glClear
将窗口的位平面区域设置为先前由glClearColor
,glClearIndex
,glClearDepth
,glClearStencil
和glClearAccum
So it simply assigns default values to buffer bits. 因此,它只是将默认值分配给缓冲区位。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.