LogoPixi’VN
pixi-jsInterfaces

Interface: GLTextureUploader

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/GLTextureUploader.d.ts:5

Internal

Properties

id

> id: string

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/GLTextureUploader.d.ts:6

Methods

upload()

> upload(source, glTexture, gl, webGLVersion, targetOverride?, forceAllocation?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/uploaders/GLTextureUploader.d.ts:18

Uploads a texture source to the currently-bound GL texture.

Parameters

source

TextureSource

The texture source to upload.

glTexture

GlTexture

The backing GL texture object.

gl

WebGL2RenderingContext

The GL context.

webGLVersion

number

The WebGL major version (1 or 2).

targetOverride?

number

Optional upload target override (e.g. cube face target). Defaults to glTexture.target.

forceAllocation?

boolean

If true, forces an allocation path (texImage2D) even if the uploader would otherwise use a sub-update path (texSubImage2D). Useful for cube faces which each require an initial allocation.

Returns

void