-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXfractals.h
32 lines (27 loc) · 947 Bytes
/
Xfractals.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
/*
* Xfractals.h: X-Fractals / header file for constants and function prototypes
*
* Authored by Parmjit Virk (2017)
*
* Licensed under the MIT license as per the Open Source Initiative 2017.
* See the LICENSE file for the complete license information,
* or visit https://opensource.org/licenses/MIT for details.
*
*/
/*
CONSTANTS
-> define width and height of new fractal window
*/
#define WIDTH 400
#define HEIGHT 400
/* GENERAL FUNCTION PROTOTYPES */
/* XWindow stuff ... */
Display * openDisplay(void);
void closeDisplay(Display *);
int getScreen(Display *);
void createWindow(Display *, int, Window *, char *);
void showWindow(Display *, int, Window *, GC *, unsigned long [][HEIGHT][1], int, int);
void createGC(Display *, Window *, GC *);
/* Fractal stuff ... */
void createFractal(int, int, unsigned long [][HEIGHT][1], int, int, int, int);
void drawFractal(Display *, Window *, GC *, unsigned long [][HEIGHT][1]);