24 lines
363 B
Markdown
24 lines
363 B
Markdown
|
|
# OpenGLCommandList::SetScissorRect
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void SetScissorRect(const Rect& rect)
|
||
|
|
```
|
||
|
|
|
||
|
|
设置裁剪矩形。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `rect` - 裁剪矩形结构
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Rect rect;
|
||
|
|
rect.x = 0; rect.y = 0;
|
||
|
|
rect.width = 800; rect.height = 600;
|
||
|
|
commandList->SetScissorRect(rect);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|