Panda3D
|
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. More...
#include "textureReloadRequest.h"
Public Member Functions | |
TextureReloadRequest (const string &name, PreparedGraphicsObjects *pgo, Texture *texture, bool allow_compressed) | |
Create a new TextureReloadRequest, and add it to the loader via load_async(), to begin an asynchronous load. | |
virtual TypeHandle | force_init_type () |
bool | get_allow_compressed () const |
Returns the "allow compressed" flag associated with this asynchronous TextureReloadRequest. | |
PreparedGraphicsObjects * | get_prepared_graphics_objects () const |
Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest. | |
Texture * | get_texture () const |
Returns the Texture object associated with this asynchronous TextureReloadRequest. | |
virtual TypeHandle | get_type () const |
bool | is_ready () const |
Returns true if this request has completed, false if it is still pending. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual DoneStatus | do_task () |
Performs the task: that is, loads the one model. |
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.
Definition at line 34 of file textureReloadRequest.h.
TextureReloadRequest::TextureReloadRequest | ( | const string & | name, |
PreparedGraphicsObjects * | pgo, | ||
Texture * | texture, | ||
bool | allow_compressed | ||
) | [inline] |
Create a new TextureReloadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
Definition at line 23 of file textureReloadRequest.I.
AsyncTask::DoneStatus TextureReloadRequest::do_task | ( | ) | [protected, virtual] |
Performs the task: that is, loads the one model.
Reimplemented from AsyncTask.
Definition at line 26 of file textureReloadRequest.cxx.
References Thread::sleep().
bool TextureReloadRequest::get_allow_compressed | ( | ) | const [inline] |
Returns the "allow compressed" flag associated with this asynchronous TextureReloadRequest.
Definition at line 65 of file textureReloadRequest.I.
PreparedGraphicsObjects * TextureReloadRequest::get_prepared_graphics_objects | ( | ) | const [inline] |
Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.
Definition at line 43 of file textureReloadRequest.I.
Texture * TextureReloadRequest::get_texture | ( | ) | const [inline] |
Returns the Texture object associated with this asynchronous TextureReloadRequest.
Definition at line 54 of file textureReloadRequest.I.
bool TextureReloadRequest::is_ready | ( | ) | const [inline] |
Returns true if this request has completed, false if it is still pending.
Definition at line 76 of file textureReloadRequest.I.