跳到主要内容

clip 裁剪纹理

clip

类型: MethodDeclaration

所属类: Texture

定义位置: webgl.ts

描述

裁剪纹理

参数 x: 水平位置

参数 y: 垂直位置

参数 width: 裁剪宽度

参数 height: 裁剪高度

返回值:当前纹理

参数

参数名类型描述默认值
xnumber--
ynumber--
widthnumber--
heightnumber--

返回值

类型: this

当前纹理

源代码

位置: 第 1993 行

public clip(x: number, y: number, width: number, height: number): this {
this.x = x
this.y = y
this.width = width
this.height = height
return this
}

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