23 lines
384 B
Markdown
23 lines
384 B
Markdown
|
|
# OpenGLCommandList::SetScissorRects
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void SetScissorRects(uint32_t count, const Rect* rects)
|
||
|
|
```
|
||
|
|
|
||
|
|
批量设置裁剪矩形。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `count` - 裁剪矩形数量
|
||
|
|
- `rects` - 裁剪矩形数组指针
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
Rect rects[2] = { ... };
|
||
|
|
commandList->SetScissorRects(2, rects);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|