14#ifndef MODELLOADREQUEST_H
15#define MODELLOADREQUEST_H
54 virtual DoneStatus do_task();
65 static void init_type() {
66 AsyncTask::init_type();
68 AsyncTask::get_class_type());
70 virtual TypeHandle get_type()
const {
71 return get_class_type();
73 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
76 static TypeHandle _type_handle;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Specifies parameters that may be passed to the loader.
A convenient class for loading models from disk, in bam or egg format (or any of a number of other fo...
PandaNode * get_model() const
Returns the model that was loaded asynchronously, if any, or null if there was an error.
get_filename
Returns the filename associated with this asynchronous ModelLoadRequest.
get_loader
Returns the Loader object associated with this asynchronous ModelLoadRequest.
get_options
Returns the LoaderOptions associated with this asynchronous ModelLoadRequest.
bool is_ready() const
Returns true if this request has completed, false if it is still pending or if it has been cancelled.
ModelLoadRequest(const std::string &name, const Filename &filename, const LoaderOptions &options, Loader *loader)
Create a new ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous lo...
A basic node of the scene graph or data graph.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...