源码与继承
成员目录23
构造函数
方法
assign
assign(source: Readonly): this
generateMipmap
generateMipmap(): boolean
getNativeHandle
getNativeHandle(): number
resize
resize(size: Readonly<Vector2u>, sRgb?: boolean): boolean
setRepeated
setRepeated(repeated: boolean): void
setSmooth
setSmooth(smooth: boolean): void
update
update(pixels: Uint8Array): void update( pixels: Uint8Array, size: Readonly<Vector2u>, dest: Readonly<Vector2u>,): void update( source: | Image | Readonly< Pick< Texture, | "getSize" | typeof graphicsNative | typeof textureId | typeof textureOwner | "copyToImage" | "isSmooth" | "isRepeated" | "isSrgb" | "getNativeHandle", >, > | Window, dest?: Readonly<Vector2u>,): void 参数
source | Image | Readonly< Pick< Texture, | "getSize" | typeof graphicsNative | typeof textureId | typeof textureOwner | "copyToImage" | "isSmooth" | "isRepeated" | "isSrgb" | "getNativeHandle", >, > | Window
源码与继承
静态bind
bind( texture: | null | Readonly< Pick< Texture, | "getSize" | typeof graphicsNative | typeof textureId | typeof textureOwner | "copyToImage" | "isSmooth" | "isRepeated" | "isSrgb" | "getNativeHandle", >, >, coordinateType?: CoordinateType,): void 参数
texture | null | Readonly< Pick< Texture, | "getSize" | typeof graphicsNative | typeof textureId | typeof textureOwner | "copyToImage" | "isSmooth" | "isRepeated" | "isSrgb" | "getNativeHandle", >, >
源码与继承
符号成员
只读[graphicsNative]
"[graphicsNative]": NativeGraphicsHandle<"texture">
源码与继承
只读[textureId]
"[textureId]": number
源码与继承
可选 只读[textureOwner]
"[textureOwner]"?: PendingTarget
源码与继承
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
支持后台图像解码和有序像素上传的 GPU 纹理。