dbf-udg

view libs/dsys2/dsys_impl.h @ 12:1abbed71e9c9

cleanup, copyright statements and notices, readme files
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 20 Feb 2013 05:45:27 +0200
parents 7056437a361b
children
line source
1 /*
2 New demosystem by Nuclear / Mindlapse
3 Copyright (C) 2011-2013 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef DSYS_IMPL_H_
19 #define DSYS_IMPL_H_
21 #include "dsys.h"
23 struct dsys_demo {
24 demotime_t tm, src_tm, start_tm, stop_tm, duration;
25 demotime_t stoppage_tm;
27 struct dsys_event *evlist;
28 int num_ev;
30 struct dsys_event *nextev, *active;
32 int running;
33 };
35 struct callback {
36 void (*func)(struct dsys_event*, void*);
37 void *cls;
39 struct callback *next;
40 };
43 struct dsys_event {
44 enum dsys_evtype type;
46 char *name;
47 demotime_t t0, t1;
48 float val;
50 float (*eval)(struct dsys_event*, demotime_t);
52 struct callback *cblist;
54 struct dsys_event *next, *prev;
55 };
57 #endif /* DSYS_IMPL_H_ */