summaryrefslogtreecommitdiff
path: root/src/post/goom/ifs.h
blob: 6ab2af0579afa08b6b1f7a774609ccba10fb376b (plain)
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
/*
 * File created 11 april 2002 by JeKo <jeko@free.fr>
 */

#ifndef IFS_H
#define IFS_H

#include "goom_config.h"

typedef struct _ifsPoint
{
	gint32  x, y;
}
IFSPoint;

// init ifs for a (width)x(height) output.
void    init_ifs (int width, int height);

// draw an ifs on the buffer (which size is width * height)
// increment means that we draw 1/increment of the ifs's points
void    ifs_update (guint32 * buffer, guint32 * back, int width, int height,
										int increment);

// free all ifs's data.
void    release_ifs (void);


/* DONT USE !!! deprecated
 * return a an array of points.
 * WARNING !!! do not free it !!! it also has an internal use..
 */
IFSPoint *draw_ifs (int *nbPoints);


#endif