LogoPixi’VN
pixi-jsClasses

Class: GlTextureSystem

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:16

The system for managing textures in WebGL.

Advanced

Implements

Constructors

Constructor

> new GlTextureSystem(renderer): GlTextureSystem

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:40

Parameters

renderer

WebGLRenderer

Returns

GlTextureSystem

Accessors

managedTextures

Get Signature

> get managedTextures(): readonly TextureSource<any>[]

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:27

Deprecated

since 8.15.0

Returns

readonly TextureSource<any>[]

Methods

bind()

> bind(texture, location?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:48

Parameters

texture

BindableTexture

location?

number

Returns

void


bindSource()

> bindSource(source, location?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:49

Parameters

source

TextureSource

location?

number

Returns

void


contextChange()

> protected contextChange(gl): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:41

Parameters

gl

WebGL2RenderingContext

Returns

void


destroy()

> destroy(): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:74

Generic destroy methods to be overridden by the subclass

Returns

void

Implementation of

System.destroy


generateCanvas()

> generateCanvas(texture): ICanvas

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:72

Parameters

texture

Texture

Returns

ICanvas

Implementation of

CanvasGenerator.generateCanvas


getGlSource()

> getGlSource(source): GlTexture

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:71

Parameters

source

TextureSource

Returns

GlTexture


getPixels()

> getPixels(texture): GetPixelsOutput

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:73

Parameters

texture

Texture

Returns

GetPixelsOutput

Implementation of

CanvasGenerator.getPixels


initSource()

> initSource(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:47

Initializes a texture source, if it has already been initialized nothing will happen.

Parameters

source

TextureSource

The texture source to initialize.

Returns

void

The initialized texture source.


onSourceUnload()

> protected onSourceUnload(source, contextLost?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:56

Parameters

source

TextureSource

contextLost?

boolean

Returns

void


onSourceUpdate()

> protected onSourceUpdate(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:57

Parameters

source

TextureSource

Returns

void


onStyleChange()

> protected onStyleChange(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:54

Parameters

source

TextureSource

Returns

void


onUpdateMipmaps()

> protected onUpdateMipmaps(source, bind?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:58

Parameters

source

TextureSource

bind?

boolean

Returns

void


resetState()

> resetState(): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:75

Returns

void


unbind()

> unbind(texture): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:51

Parameters

texture

BindableTexture

Returns

void


updateStyle()

> protected updateStyle(source, firstCreation): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gl/texture/GlTextureSystem.d.ts:55

Parameters

source

TextureSource

firstCreation

boolean

Returns

void