21 lines
274 B
Markdown
21 lines
274 B
Markdown
|
|
# OpenGLCommandList::ClearStencil
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void ClearStencil(int stencil)
|
||
|
|
```
|
||
|
|
|
||
|
|
清除模板缓冲区。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `stencil` - 模板值
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList->ClearStencil(0);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|