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