21 lines
285 B
Markdown
21 lines
285 B
Markdown
|
|
# OpenGLCommandList::SetStencilRef
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void SetStencilRef(uint8_t ref)
|
||
|
|
```
|
||
|
|
|
||
|
|
设置模板测试参考值。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `ref` - 模板参考值
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList->SetStencilRef(1);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|