comparison src/dmengine.h @ 1688:51ce7edd5054

Add few comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 01 Jun 2018 02:27:07 +0300
parents 5e5f75b45f8d
children 862a943afff4
comparison
equal deleted inserted replaced
1687:383ca5f6e78b 1688:51ce7edd5054
120 typedef struct _DMEffect 120 typedef struct _DMEffect
121 { 121 {
122 char * name; 122 char * name;
123 int type; 123 int type;
124 124
125 // init() - called at demo start/loading phase
125 int (*init)(struct DMEngineData *, const struct _DMEffect *eff, void **data); 126 int (*init)(struct DMEngineData *, const struct _DMEffect *eff, void **data);
127
128 // shutdown() - called at demo shutdown
126 void (*shutdown)(struct DMEngineData *, const struct _DMEffect *eff, void *data); 129 void (*shutdown)(struct DMEngineData *, const struct _DMEffect *eff, void *data);
130
131 // called to render a frame
127 int (*render)(struct DMEngineData *, const struct _DMEffect *eff, void *data, const DMTimelineEventParam *params, const int time); 132 int (*render)(struct DMEngineData *, const struct _DMEffect *eff, void *data, const DMTimelineEventParam *params, const int time);
128 133
129 int nparams; 134 int nparams;
130 DMTimelineEventParam params[DT_MAX_EFFECT_PARAMS]; 135 DMTimelineEventParam params[DT_MAX_EFFECT_PARAMS];
131 } DMEffect; 136 } DMEffect;