-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathanimation.h
35 lines (30 loc) · 887 Bytes
/
animation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Animation processing
*
* Copyright (C) 2012 Alexander Lukichev
*
* Alexander Lukichev <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*/
#ifndef _ANIMATION_H
#define _ANIMATION_H
struct screen_info;
struct string_list;
struct commands_data;
struct animation {
struct screen_info *fb;
int x; /* Center of frames */
int y; /* Center of frames */
struct image_info *frames;
int frame_num;
int frame_count;
unsigned int interval;
struct commands_data *commands;
};
int animation_init(struct string_list *filenames, int filenames_count,
struct screen_info *fb, struct animation *a);
int animation_run(struct animation *banner, int frames);
#endif /* _ANIMATION_H */