diff options
Diffstat (limited to 'Movie.h')
-rwxr-xr-x | Movie.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,7 +1,8 @@ | |||
1 | /* Opaque reference to Movie in | 1 | /* Opaque reference to Movie in |
2 | Movie library | 2 | Movie library |
3 | */ | 3 | */ |
4 | typedef void* Movie; | 4 | struct Movie; |
5 | typedef struct Movie Movie; | ||
5 | 6 | ||
6 | /* Initialise Movie handler | 7 | /* Initialise Movie handler |
7 | - points is number of balls | 8 | - points is number of balls |
@@ -15,7 +16,16 @@ void Movie_destroy( void ); | |||
15 | /* Load one movie from File | 16 | /* Load one movie from File |
16 | - filename pointer to file containing | 17 | - filename pointer to file containing |
17 | Movie | 18 | Movie |
18 | - returns handle to the Movie | 19 | - returns handle to the Movie or NULL |
20 | on error | ||
21 | |||
22 | File format is: | ||
23 | %d\n number of points for Cube | ||
24 | %d\n number of frames | ||
25 | %d\n frame rate | ||
26 | foreach frame | ||
27 | foreach point * point * point | ||
28 | %d%d%d RGB of pixel | ||
19 | */ | 29 | */ |
20 | Movie *Movie_loadmovie( char *filename ); | 30 | Movie *Movie_loadmovie( char *filename ); |
21 | 31 | ||