15 #ifndef __UT_Playback__
16 #define __UT_Playback__
48 void setPlaybackMode(UT_PlaybackMode
mode);
51 {
return myPlayback; }
54 {
return myStopCount; }
57 { myRealtimeMode =
mode; }
60 {
return myRealtimeMode; }
63 { myStartRange =
start; myEndRange =
end; }
66 { start = myStartRange; end = myEndRange; }
68 bool isPlaybackReset();
69 bool isPlaying()
const {
return (myPlayback == FORWARD ||
70 myPlayback == REVERSE); }
73 void setCurrentFrame(
fpreal frame);
76 void resetAbsoluteFrame();
81 void setStopCallback(
void (*cb)(
void *),
void *
data);
95 bool canAdvancePlay();
101 using CallbackPair = std::pair<UT_PlayAdvanceCB, void *>;
103 UT_PlaybackMode myPlayback;
107 unsigned long myAbsoluteFrame;
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
void setPlaybackRange(fpreal start, fpreal end)
void getPlaybackRange(fpreal &start, fpreal &end) const
UT_PlaybackMode getPlaybackMode() const
void(* UT_PlayCallback)(void *, int, fpreal, fpreal)
void setInterceptMode(int mode)
void setRealtimeMode(bool mode)
int getInterceptMode() const
bool getRealtimeMode() const
void setEvalStartTime(fpreal eval_start_time)
SYSdeclareStaticObject(UT_API, UTplaybackObject)
unsigned long getAbsoluteFrame()
bool(* UT_PlayAdvanceCB)(void *)
fpreal getEvalStartTime() const