25 #ifndef PEGASUS_TRANSITION_H 26 #define PEGASUS_TRANSITION_H 28 #include "pegasus/fader.h" 41 void doFadeOutSync(
const TimeValue = kOneSecondPerThirtyTicks,
const TimeScale = kThirtyTicksPerSecond,
bool isBlack =
true);
42 void doFadeInSync(
const TimeValue = kHalfSecondPerThirtyTicks,
const TimeScale = kThirtyTicksPerSecond,
bool isBlack =
true);
44 void setFaderValue(
const int32)
override;
48 uint32 fadePixel(uint32 color, int32 percent)
const;
55 static const int kTransitionBottom = 0;
56 static const int kTransitionTop = 1000;
58 static const int kTransitionRange = kTransitionTop - kTransitionBottom;
75 CoordType _boundsWidth, _boundsHeight;
83 virtual void setSlideDirection(SlideDirection dir) { _direction = dir; }
86 virtual void setDirection(
const SlideDirection dir) { _direction = dir; }
93 SlideDirection _direction;
98 Push(
const DisplayElementID
id) :
Slide(
id) {}
Definition: transition.h:60
Definition: transition.h:96
Definition: transition.h:36
Definition: formatinfo.h:28
Definition: elements.h:43
Definition: transition.h:78
Definition: ai_action.h:33