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