- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
22 lines
394 B
Markdown
22 lines
394 B
Markdown
# OpenGLDepthStencilView::ClearDepthStencil
|
||
|
||
```cpp
|
||
void ClearDepthStencil(float depth, uint8_t stencil)
|
||
```
|
||
|
||
同时清除深度和模板缓冲区。
|
||
|
||
**参数:**
|
||
- `depth` - 深度值(通常为 0.0 到 1.0)
|
||
- `stencil` - 模板值(0-255)
|
||
|
||
**示例:**
|
||
|
||
```cpp
|
||
dsv.ClearDepthStencil(1.0f, 0);
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览
|