56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
|
/**
|
||
|
* PANDA 3D SOFTWARE
|
||
|
* Copyright (c) Carnegie Mellon University. All rights reserved.
|
||
|
*
|
||
|
* All use of this software is subject to the terms of the revised BSD
|
||
|
* license. You should have received a copy of this license along
|
||
|
* with this source code in a file named "LICENSE."
|
||
|
*
|
||
|
* @file vertexTransform.I
|
||
|
* @author drose
|
||
|
* @date 2005-03-23
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Returns a sequence number that's guaranteed to change at least every time
|
||
|
* the value reported by get_matrix() changes.
|
||
|
*/
|
||
|
INLINE UpdateSeq VertexTransform::
|
||
|
get_modified(Thread *current_thread) const {
|
||
|
CDReader cdata(_cycler, current_thread);
|
||
|
return cdata->_modified;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns the currently highest VertexTransform::get_modified() value in the
|
||
|
* world. This can be used as a quick way to determine if any
|
||
|
* VertexTransforms have changed value recently.
|
||
|
*/
|
||
|
INLINE UpdateSeq VertexTransform::
|
||
|
get_global_modified(Thread *current_thread) {
|
||
|
CDReader cdata(_global_cycler, current_thread);
|
||
|
return cdata->_modified;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE VertexTransform::CData::
|
||
|
CData() {
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
INLINE VertexTransform::CData::
|
||
|
CData(const VertexTransform::CData ©) :
|
||
|
_modified(copy._modified)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
INLINE std::ostream &
|
||
|
operator << (std::ostream &out, const VertexTransform &obj) {
|
||
|
obj.output(out);
|
||
|
return out;
|
||
|
}
|