|
@@ -5,6 +5,24 @@
|
|
|
|
|
|
|
|
#include "alphaTransformProperty.h"
|
|
#include "alphaTransformProperty.h"
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: AlphaTransformProperty::compare_to
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description:
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+int AlphaTransformProperty::
|
|
|
|
|
+compare_to(const AlphaTransformProperty &other) const {
|
|
|
|
|
+ if (_offset < other._offset)
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ else if (_offset > other._offset)
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ if (_scale < other._scale)
|
|
|
|
|
+ return -1;
|
|
|
|
|
+ else if (_scale > other._scale)
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ return 0;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: AlphaTransformProperty::output
|
|
// Function: AlphaTransformProperty::output
|
|
|
// Access: Public
|
|
// Access: Public
|