Mercurial > mm7
annotate MediaPlayer.h @ 2320:847aba0b7f82
draw terrain distance
author | Ritor1 |
---|---|
date | Fri, 21 Mar 2014 01:12:52 +0600 |
parents | 58be29479e75 |
children | 182effc4b0ee |
rev | line source |
---|---|
2315 | 1 #pragma once |
2 | |
3 namespace Media | |
4 { | |
5 class ITrack | |
6 { | |
7 public: virtual void Play(bool loop = false) = 0; | |
8 }; | |
9 | |
10 class IMovie | |
11 { | |
12 public: virtual void Play() = 0; | |
13 virtual void GetNextFrame(double dt, void *target_surface) = 0; | |
14 }; | |
15 | |
16 class Player | |
17 { | |
18 public: | |
19 Player(); | |
20 virtual ~Player(); | |
21 | |
22 | |
23 ITrack *LoadTrack(const wchar_t *name); | |
24 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms); | |
25 }; | |
26 }; |