Go to the documentation of this file.
18 ModelRoot(
const std::string &name) :
30 ModelRoot(
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)
132 INLINE ModelRoot::ModelReference::
get_reference
Returns 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.
set_reference
Changes 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.
This node is placed at key points within the scene graph to indicate the roots of "models": subtrees ...
void ref() const
Explicitly increments the reference count.
set_timestamp
Sets the timestamp of the file on disk that was read for this model.
A node of this type is created automatically at the root of each model file that is loaded.
get_timestamp
Returns the timestamp of the file on disk that was read for this model, at the time it was read,...
set_fullpath
Sets the full pathname of the model represented by this node, as found on disk.
The name of a file, such as a texture file or an Egg file.