TextureReloadRequest¶
from acron.core import TextureReloadRequest
- class TextureReloadRequest¶
Bases:
Bases:
AsyncTaskThis 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
digraph inheritance0458508a87 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AsyncFuture" [URL="acron.core.AsyncFuture.html#acron.core.AsyncFuture",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "AsyncFuture" [arrowsize=0.75,style=""]; "AsyncTask" [URL="acron.core.AsyncTask.html#acron.core.AsyncTask",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncFuture" -> "AsyncTask" [arrowsize=0.75,style=""]; "Namable" -> "AsyncTask" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TextureReloadRequest" [URL="acron.core.TextureReloadRequest.html#acron.core.TextureReloadRequest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AsyncTask" -> "TextureReloadRequest" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }- __init__()¶
Create a new
TextureReloadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
- get_allow_compressed()¶
Returns the “allow compressed” flag associated with this asynchronous
TextureReloadRequest.
- static get_class_type()¶
- get_prepared_graphics_objects()¶
Returns the
PreparedGraphicsObjectsobject associated with this asynchronousTextureReloadRequest.
- get_texture()¶
Returns the Texture object associated with this asynchronous
TextureReloadRequest.
- is_ready()¶
Returns true if this request has completed, false if it is still pending. Equivalent to
req.done() and not req.cancelled().
- property texture Texture¶
Returns the Texture object associated with this asynchronous
TextureReloadRequest.