22 ModelRoot(
const string &name) :
36 ModelRoot(
const Filename &fullpath, time_t timestamp) :
39 _timestamp(timestamp),
57 return _reference->get_ref_count();
116 _timestamp = timestamp;
155 _fullpath(copy._fullpath),
156 _timestamp(copy._timestamp),
157 _reference(copy._reference)
166 INLINE ModelRoot::ModelReference::
A node of this type is created automatically at the root of each model file that is loaded...
const Filename & get_fullpath() const
Returns the full pathname of the model represented by this node, as found on disk.
void set_reference(ModelReference *ref)
Changes the pointer that represents the object shared between all copies of this ModelRoot.
void set_fullpath(const Filename &fullpath)
Sets the full pathname of the model represented by this node, as found on disk.
int get_model_ref_count() const
Returns the number of copies that exist of this particular ModelRoot node.
void set_timestamp(time_t timestamp)
Sets the timestamp of the file on disk that was read for this model.
This node is placed at key points within the scene graph to indicate the roots of "models": subtrees ...
ModelReference * get_reference() const
Returns the pointer that represents the object shared between all copies of this ModelRoot.
The name of a file, such as a texture file or an Egg file.
time_t get_timestamp() const
Returns the timestamp of the file on disk that was read for this model, at the time it was read...
void ref() const
Explicitly increments the reference count.