RGBColorKeyframe

struct HPS::RGBColorKeyframe

Public Functions

bool operator!=(RGBColorKeyframe const &in_that) const

Check if the source RGBColorKeyframe is different from this RGBColorKeyframe.

Parameters

in_that – The source RGBColorKeyframe to compare to this RGBColorKeyframe.

Returns

true if the objects are different, false otherwise.

bool operator==(RGBColorKeyframe const &in_that) const

Check if the source RGBColorKeyframe is equal to this RGBColorKeyframe.

Parameters

in_that – The source RGBColorKeyframe to compare to this RGBColorKeyframe.

Returns

true if the objects are equal, false otherwise.

RGBColorKeyframe(uint32_t in_ticks, RGBColor const &in_value)

Creates a new RGBColorKeyframe, suitable for using with a RGBSampler object. The correspondence between real time and ticks can be controlled through AnimationControl::SetTimePerTick The RGB components of RGBColorKeyframes cannot have values outside the [0 - 1] range. Setting a keyframe with such a value on a sampler will result in an InvalidSpecificationException being thrown

Parameters
  • in_ticks – The time, specified in ticks, when this keyframe should be executed.

  • in_value – The value of this keyframe at the specified time.

Public Members

uint32_t time_in_ticks
RGBColor value