new PIXI.CompressedTextureResource (source, options) overrides
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
source |
string | Uint8Array | Uint32Array |
the buffer/URL holding the compressed texture data |
||
options |
ICompressedTextureResourceOptions | |||
options.format |
PIXI.INTERNAL_FORMATS |
the compression format |
||
options.width |
number |
the image width in pixels. |
||
options.height |
number |
the image height in pixels. |
||
options.level |
number |
<optional> |
1 |
the mipmap levels stored in the compressed texture, including level 0. |
options.levelBuffers |
number |
<optional> |
the buffers for each mipmap level. |
Extends
Members
The compression format
The number of mipmap levels stored in the resource buffer.
- Default Value:
- 1
Methods
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer | |
_texture |
PIXI.BaseTexture | |
_glTexture |
PIXI.GLTexture |
Returns:
Type | Description |
---|---|
boolean |
Inherited Properties
From class PIXI.resources.BlobResource
buffer ViewableBuffer inherited
The viewable buffer on the data
origin string inherited
The URL of the texture file
Inherited Methods
From class PIXI.resources.BlobResource
load () Promise inherited
Loads the blob
Returns:
Type | Description |
---|---|
Promise |