mandint.h

/*
MANDINT.H -- Mandelbrot set program : Header file for MandInt
*/
#ifndef __MANDINTH__
#define __MANDINTH__

#include <complex.h>

struct RET {
int col;
complex comp;
int old_colour;
};

int mandint(void);
int juliaint(complex c);
RET julia(complex z,complex c,int maxit);
void beep(void);
void initPal(void);
void rotatePal(void);
void setVGApalette(unsigned char *buffer);
void plot(int x,int y,int color);
void ex();
void setmode(int mode);
void set_color(int xa,int ya,int x,int y,int xb,int yb);
int readpixel(int x,int y);
void initPal(void);
void screen_save(void);
void done(void);
void prnscr(int xlo,int xhi,int ylo,int yhi);
void prchar(char ch);
float getAspect(int pixX,int pixY);
char getans(char a,char b);
float get_float(void);
int add(int &a,int n);
void error(int err,char *s);
void put_char(char c);
char get_char(void);

unsigned char Pal_Array[256][3];
unsigned int maxX=320,mx=320,maxY=200,my=199;

#endif

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.