81 lines
2.4 KiB
Plaintext
81 lines
2.4 KiB
Plaintext
// Filename: alphaTransformProperty.I
|
|
// Created by: jason (01Aug00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE AlphaTransformProperty::
|
|
AlphaTransformProperty() :
|
|
_offset(0), _scale(1)
|
|
{
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE AlphaTransformProperty::
|
|
AlphaTransformProperty(float offset, float scale) :
|
|
_offset(offset), _scale(scale)
|
|
{
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::set_offset
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void AlphaTransformProperty::
|
|
set_offset(float offset) {
|
|
_offset = offset;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::get_offset
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float AlphaTransformProperty::
|
|
get_offset() const {
|
|
return _offset;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::set_scale
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE void AlphaTransformProperty::
|
|
set_scale(float scale) {
|
|
_scale = scale;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::get_scale
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE float AlphaTransformProperty::
|
|
get_scale() const {
|
|
return _scale;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: AlphaTransformProperty::compare_to
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
INLINE int AlphaTransformProperty::
|
|
compare_to(const AlphaTransformProperty &other) const {
|
|
if (_offset < other._offset)
|
|
return -1;
|
|
else if (_offset > other._offset)
|
|
return 1;
|
|
return 0;
|
|
}
|