panda3d.core.TextureReloadRequest

class TextureReloadRequest

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) → None
__init__(name: str, pgo: PreparedGraphicsObjects, texture: Texture, allow_compressed: bool) → None

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
Return type

TypeHandle

getPreparedGraphicsObjects() → PreparedGraphicsObjects

Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.

Return type

PreparedGraphicsObjects

getTexture() → Texture

Returns the Texture object associated with this asynchronous TextureReloadRequest.

Return type

Texture

isReady() → bool

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

See done().

property texture

Returns the Texture object associated with this asynchronous TextureReloadRequest.

Return type

Texture