1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
2 
3 #ifndef VSYNC_H
4 #define VSYNC_H
5 
6 class CVerticalSync {
7 	public:
8 		CVerticalSync();
9 		~CVerticalSync();
10 
11 		void Init();
12 		void SetInterval(int interval);
GetInterval()13 		int  GetInterval() const { return interval; }
14 
15 		void Delay() const;
16 
17 	private:
18 		int interval;
19 };
20 
21 extern CVerticalSync VSync;
22 
23 #endif /* VSYNC_H */
24