TextureReloadRequest

from panda3d.core import TextureReloadRequest
class TextureReloadRequest

Bases:

Bases: AsyncTask

This loader request will call Texture.getRamImage() in a sub-thread, to force the texture’s image to be re-read from disk. It is used by GraphicsStateGuardian::async_reload_texture(), when get_incomplete_render() is true.

Inheritance diagram

Inheritance diagram of TextureReloadRequest

__init__(param0: TextureReloadRequest)
__init__(name: str, pgo: PreparedGraphicsObjects, texture: Texture, allow_compressed: bool)

Create a new TextureReloadRequest, and add it to the loader via load_async(), to begin an asynchronous load.

getAllowCompressed() bool

Returns the “allow compressed” flag associated with this asynchronous TextureReloadRequest.

static getClassType() TypeHandle
getPreparedGraphicsObjects() PreparedGraphicsObjects

Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.

getTexture() Texture

Returns the Texture object associated with this asynchronous TextureReloadRequest.

isReady() bool

Returns true if this request has completed, false if it is still pending. Equivalent to req.done() and not req.cancelled().

See panda3d.core.AsyncFuture.done().

property texture Texture

Returns the Texture object associated with this asynchronous TextureReloadRequest.