The resources loader of the game.
To be called when the game is disposed. Clear caches of loaded textures and materials.
Return a PIXI texture which can be used as a placeholder when no suitable texture can be found.
Return a texture containing a circle filled with white.
The circle radius
The renderer used to generate the texture
Return a texture filled with white.
The texture width
The texture height
The renderer used to generate the texture
Return a texture rescaled according to given dimensions.
The texture width
The texture height
The renderer used to generate the texture
Return the PIXI texture associated to the specified resource name. If not found in the loaded textures, this method will try to load it. Warning: this method should only be used in specific cases that cannot rely on the initial resources loading of the game, such as the splashscreen.
The name of the resource
The requested texture, or a placeholder if not valid.
Return the PIXI texture associated to the specified resource name. Returns a placeholder texture if not found.
The name of the resource
The requested texture, or a placeholder if not found.
Return the PIXI video texture associated to the specified resource name. Returns a placeholder texture if not found.
The name of the resource to get.
Return the kind of resources handled by this manager.
Return the three.js material associated to the specified resource name.
The name of the resource
The requested material.
Return the three.js texture associated to the specified resource name. Returns a placeholder texture if not found.
The name of the resource
The requested texture, or a placeholder if not found.
Load the specified resources, so that textures are loaded and can then be
used by calling getPIXITexture
.
Process the specified resource.
This method will only be run while loading screen is shown. It can do heavy tasks like parsing data.
Generated using TypeDoc
PixiImageManager loads and stores textures that can be used by the Pixi.js renderers.