Theora Playback Library  1.1.0
TheoraTimer.h
Go to the documentation of this file.
1 /************************************************************************************
2 This source file is part of the Theora Video Playback Library
3 For latest info, see http://libtheoraplayer.googlecode.com
4 *************************************************************************************
5 Copyright (c) 2008-2014 Kresimir Spes (kspes@cateia.com)
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
8 *************************************************************************************/
9 
10 #ifndef _TheoraTimer_h
11 #define _TheoraTimer_h
12 
13 #include "TheoraExport.h"
14 
22 {
23 protected:
25  float mTime,mSpeed;
27  bool mPaused;
28 public:
29  TheoraTimer();
30  virtual ~TheoraTimer();
31 
32  virtual float getTime();
41  virtual void update(float timeDelta);
42 
43  virtual void pause();
44  virtual void play();
45  virtual bool isPaused();
46  virtual void stop();
56  virtual void setSpeed(float speed);
58  virtual float getSpeed();
59 
66  virtual void seek(float time);
67 };
68 #endif
69 
Definition: TheoraTimer.h:21
#define TheoraPlayerExport
Definition: TheoraExport.h:25
bool mPaused
Is the timer paused or not.
Definition: TheoraTimer.h:27
float mTime
Current time in seconds.
Definition: TheoraTimer.h:25