diff options
author | erdgeist <> | 2003-05-13 12:05:12 +0000 |
---|---|---|
committer | erdgeist <> | 2003-05-13 12:05:12 +0000 |
commit | 866f0ad8030ea2ceea22a4d61e6ff0006546c3fa (patch) | |
tree | 54f3af1248bce246e1dd92b196b818271d21f2f6 /Movie.h |
Here we go
Diffstat (limited to 'Movie.h')
-rwxr-xr-x | Movie.h | 47 |
1 files changed, 47 insertions, 0 deletions
@@ -0,0 +1,47 @@ | |||
1 | /* Opaque reference to Movie in | ||
2 | Movie library | ||
3 | */ | ||
4 | typedef void* Movie; | ||
5 | |||
6 | /* Initialise Movie handler | ||
7 | - points is number of balls | ||
8 | */ | ||
9 | void Movie_init( int points ); | ||
10 | |||
11 | /* Deinitialises Movie handler | ||
12 | */ | ||
13 | void Movie_destroy( void ); | ||
14 | |||
15 | /* Load one movie from File | ||
16 | - filename pointer to file containing | ||
17 | Movie | ||
18 | - returns handle to the Movie | ||
19 | */ | ||
20 | Movie *Movie_loadmovie( char *filename ); | ||
21 | |||
22 | /* Kills one movie from memory | ||
23 | - movie reference to cached movie | ||
24 | */ | ||
25 | void Movie_unloadmovie( Movie *movie ); | ||
26 | |||
27 | /* Play movie | ||
28 | - movie Movie to play | ||
29 | - rate framerate | ||
30 | */ | ||
31 | void Movie_playmovie( Movie *movie, int rate ); | ||
32 | |||
33 | /* Inform Movie library that one frame is going | ||
34 | to be rendered and hence all following pixel | ||
35 | colors come from the same frame descriptor | ||
36 | */ | ||
37 | void Movie_stamptime( void ); | ||
38 | |||
39 | /* Test, whether next frame is to be displayed | ||
40 | */ | ||
41 | int Movie_checkframe( void ); | ||
42 | |||
43 | /* Get color information for one specific pixel | ||
44 | in current frame | ||
45 | - x,y,z coordinates of ball | ||
46 | */ | ||
47 | unsigned long Movie_getpixelcolor( int x, int y, int z); | ||