跳到主要内容

glViewport

设置视口区域。

声明

void glViewport(int x, int y, int width, int height)

参数

参数名描述
x左下角 X
y左下角 Y
width宽度
height高度

返回值

使用方式

返回文档