glClearColor — カラーバッファーのクリアー色を指定します
void glClearColor(
|
GLfloat red, |
| GLfloat green, | |
| GLfloat blue, | |
GLfloat alpha); |
red,
green,
blue,
alpha
カラーバッファーをクリアーする際の赤 (red)、緑 (green)、青 (blue)、アルファの値を指定します。 初期値は全て 0 です。
glClearColor は glClear によってカラーバッファーをクリアーする際に
赤、
緑、
青、
アルファの各値を指定します。
glClearColor で指定された値は
パラメーター red、
green、 blue、
alpha の型は
GLclampf から GLfloat へ変更されました。
この変更はユーザーコードへ透過的です。
変更の詳細は
removedTypes
を参照して下さい。
glGet with argument GL_COLOR_CLEAR_VALUE
| OpenGL Version | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 |
glClearColor
|
✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.