Skip to main content

offscreenResetViewport

offscreenResetViewport

类型: FunctionDeclaration

定义位置: webgl.ts

参数

参数名类型描述默认值
thistypeof GL--

返回值

类型: void

源代码

位置: 第 1426 行

function offscreenResetViewport(this: typeof GL) {
const base = this.offscreen.current.base
const width = base.width
const height = base.height
this.width = width
this.height = height
// 将视口设为当前离屏纹理的大小
this.viewport(0, 0, width, height)
}

文档生成时间:2025/7/7 12:07:07