offscreenResetViewport
offscreenResetViewport
类型: FunctionDeclaration
定义位置: webgl.ts
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| this | typeof 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/21 20:53:39