Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
TextureReloadRequest Class Reference

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"

Inheritance diagram for TextureReloadRequest:
AsyncTask AsyncTaskBase TypedReferenceCount Namable TypedObject ReferenceCount MemoryBase MemoryBase MemoryBase

List of all members.

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.
PreparedGraphicsObjectsget_prepared_graphics_objects () const
 Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.
Textureget_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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

Returns the "allow compressed" flag associated with this asynchronous TextureReloadRequest.

Definition at line 65 of file textureReloadRequest.I.

Returns the PreparedGraphicsObjects object associated with this asynchronous TextureReloadRequest.

Definition at line 43 of file textureReloadRequest.I.

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations