TextureReloadRequest

from panda3d.core import TextureReloadRequest
class TextureReloadRequest

Bases:

Bases: AsyncTask

This loader request will call Texture.get_ram_image() 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.

Deprecated: Use Texture.async_ensure_ram_image() instead.

Inheritance diagram

Inheritance diagram of 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.

get_allow_compressed() bool

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

static get_class_type() TypeHandle
get_prepared_graphics_objects() PreparedGraphicsObjects

Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.

get_texture() Texture

Returns the Texture object associated with this asynchronous TextureReloadRequest.

is_ready() 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.