X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fstonerview-osc.h;h=b8c077800136bddf2e0b40c85866fa1fd6aa7de7;hp=ef9104c427d47d0ad68ec570ccbd930abe143175;hb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;hpb=ccb7f4903325f92555a9722bba74b58346654ba0 diff --git a/hacks/glx/stonerview-osc.h b/hacks/glx/stonerview-osc.h index ef9104c4..b8c07780 100644 --- a/hacks/glx/stonerview-osc.h +++ b/hacks/glx/stonerview-osc.h @@ -10,6 +10,9 @@ implied warranty. */ +#ifndef __STONERVIEW_OSC_H__ +#define __STONERVIEW_OSC_H__ + /* This defines the osc_t object, which generates a stream of numbers. It is the heart of the StonerSound/StonerView engine. @@ -152,17 +155,21 @@ typedef struct osc_struct { } u; } osc_t; -extern osc_t *new_osc_constant(int val); -extern osc_t *new_osc_bounce(int min, int max, int step); -extern osc_t *new_osc_wrap(int min, int max, int step); -extern osc_t *new_osc_phaser(int phaselen); -extern osc_t *new_osc_randphaser(int minphaselen, int maxphaselen); -extern osc_t *new_osc_velowrap(int min, int max, osc_t *step); -extern osc_t *new_osc_linear(osc_t *base, osc_t *diff); -extern osc_t *new_osc_buffer(osc_t *val); -extern osc_t *new_osc_multiplex(osc_t *sel, osc_t *ox0, osc_t *ox1, +extern osc_t *new_osc_constant(stonerview_state *, int val); +extern osc_t *new_osc_bounce(stonerview_state *, int min, int max, int step); +extern osc_t *new_osc_wrap(stonerview_state *, int min, int max, int step); +extern osc_t *new_osc_phaser(stonerview_state *, int phaselen); +extern osc_t *new_osc_randphaser(stonerview_state *, + int minphaselen, int maxphaselen); +extern osc_t *new_osc_velowrap(stonerview_state *, + int min, int max, osc_t *step); +extern osc_t *new_osc_linear(stonerview_state *, osc_t *base, osc_t *diff); +extern osc_t *new_osc_buffer(stonerview_state *st, osc_t *val); +extern osc_t *new_osc_multiplex(stonerview_state *, + osc_t *sel, osc_t *ox0, osc_t *ox1, osc_t *ox2, osc_t *ox3); -extern int osc_get(osc_t *osc, int el); -extern void osc_increment(void); +extern int osc_get(stonerview_state *, osc_t *osc, int el); +extern void osc_increment(stonerview_state *); +#endif /* __STONERVIEW_OSC_H__ */