glClearColor

glClear函式來自OPENGL,其中它是通過glClear使用紅,綠,藍以及AFA值來清除顏色緩衝區的,並且都被歸一化在(0,1)之間的值,其實就是清空當前的所有顏色。

基本介紹

  • 中文名:glClearColor
  • 外文名:glClearColor
  • 來自:OPENGL
  • void glClearColor(:GLclampf red,GLclampf green,
glClearColor
The glClearColor function specifies clear values for the color buffers.
void glClearColor(
GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha
);
Parameters
red, green, blue, alpha
The red, green, blue, and alpha values used when the color buffers are cleared. The default values are all zero.
紅,綠,藍和AFA值是在顏色緩衝區被清除之後使用的,並且預設值全是0.即(0,0,0,0),其實就是設定顏色
Remarks
The glClearColor function specifies the red, green, blue, and alpha values used by glClear to clear the color buffers. Values specified by glClearColor are clamped to the range [0,1].
The following functions retrieve information related to the glClearColor function:
glGet with argument GL_ACCUM_CLEAR_VALUE
glGet with argument GL_COLOR_CLEAR_VALUE
備註
以下是有關glClearColor函式的信息參考的函式
glGet with argument GL_ACCUM_CLEAR_VALUE
glGet with argument GL_COLOR_CLEAR_VALUE

相關詞條

熱門詞條

聯絡我們