Collection of options
Number of the texture batch, used by multi-texture renderers
Location inside texture batch, used by multi-texture renderers
How to treat premultiplied alpha, see {@link PIXI.ALPHA_MODES}.
Anisotropic filtering level of texture
Currently default cache ID.
The format for this cubemap.
Flag if BaseTexture has been destroyed.
Used by TextureSystem to only update texture to the GPU when needed.
Please call update()
to increment it.
Used by TextureSystem to only update texture style when needed.
The pixel format of the texture
The height of the base texture set when the image has loaded
Whether or not the texture is a power of two, try to use power of two textures as much as you can
Whether its a part of another texture, handled by ArrayResource or CubeResource
The resolution / device pixel ratio of the texture
The resource used by this BaseTexture, there can only be one resource per BaseTexture, but textures can share resources.
The target type
The collection of alternative cache ids, since some BaseTextures can have more than one ID, short name and longer full URL
Used by automatic texture Garbage Collection, stores last GC tick when it was bound
The type of resource data
Global unique identifier for this BaseTexture
Generally speaking means when resource is loaded.
The width of the base texture set when the image has loaded
Global number of the texture batch, used by multi-texture renderers.
Returns the number of mipmap levels.
Mipmap mode of the texture, affects downscaled images
Mipmap mode of the texture, affects downscaled images
Pixel height of the source of this texture
Pixel width of the source of this texture
The scale mode to apply when scaling this texture
The scale mode to apply when scaling this texture
How the texture wraps
How the texture wraps
Returns an array of faces.
Utility function for BaseTexture|Texture cast.
Destroys this base texture. The method stops if resource doesn't want this texture to be destroyed. Removes texture from all caches.
Frees the texture from WebGL memory without destroying this texture object. This means you can still use the texture later which will upload it to GPU memory again.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Sets real size of baseTexture, preserves current resolution.
Full rendered width
Full rendered height
Optionally set resolution
Changes resolution
res
Sets the resource if it wasn't set. Throws error if resource already present
that is managing this BaseTexture
Changes w/h/resolution. Texture becomes valid if width and height are greater than zero.
Desired visual width
Desired visual height
Optionally set resolution
Changes style options of BaseTexture
Pixi scalemode
enable mipmaps
Invalidates the object. Texture becomes valid if width and height are greater than zero.
Adds a BaseTexture to the global BaseTextureCache. This cache is shared across the whole PIXI object.
The BaseTexture to add to the cache.
The id that the BaseTexture will be stored against.
Helper function that creates a base texture based on the source you provide. The source can be - image url, image element, canvas element. If the source is an image url or an image element and not in the base texture cache, it will be created and loaded.
The source to create base texture from.
See {@link PIXI.BaseTexture}'s constructor for options.
The new base texture.
Create a new BaseTexture with a BufferResource from a Float32Array. RGBA values are floats from 0 to 1.
The optional array to use, if no data is provided, a new Float32Array is created.
Width of the resource
Height of the resource
See {@link PIXI.BaseTexture}'s constructor for options. Default properties are different from the constructor's defaults.
Creates a new cubemap from the specified colors.
The color for positive x.
The color for negative x.
The color for positive y.
The color for negative y.
The color for positive z.
The color for negative z.
Creates a new cubemap from the specified faces.
The faces to create the cubemap from.
Remove a BaseTexture from the global BaseTextureCache.
id of a BaseTexture to be removed, or a BaseTexture instance itself.
The BaseTexture that was removed.
Generated using TypeDoc
Cubemap which supports multiple user specified mipmaps.