WebGLRenderingContext.clearStencil()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
WebGL API の WebGLRenderingContext.clearStencil()
メソッドは、ステンシルバッファーを消去する値を指定します。
この指定は、clear()
メソッドを呼ぶときに使用されるステンシルの値です。
構文
void gl.clearStencil(s);
引数
返り値
ありません。
例
js
gl.clearStencil(1);
現在のステンシルを消去する値を取得するには、STENCIL_CLEAR_VALUE
定数で問い合わせます。
js
gl.getParameter(gl.STENCIL_CLEAR_VALUE);
// 1
仕様策定状況
Specification |
---|
WebGL Specification # 5.14.3 |
ブラウザーの対応
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
clearStencil |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.