view include/Julia.h @ 2:0684158d38a8

Before cleanup. Still has experimental code in it.
author Eris Caffee <discordia@eldalin.com>
date Fri, 22 Oct 2010 02:21:52 -0500
parents 455406f5f021
children 0f4ad525f49a
line source
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) 2010 Sarah Eris Horsley Caffee
4 //
5 // mandelbrot - A simple Mandelbrot Set viewer.
6 //
7 // Julia.h
8 // Julia set calculator class definition
9 //
10 ////////////////////////////////////////////////////////////////////////////////
12 #ifndef JULIA_H
13 #define JULIA_H
15 #include <string>
17 #include "SDL.h"
19 #include "Fractal.h"
21 class Julia : public Fractal
22 {
23 public:
24 Julia();
26 bool calc_set();
27 bool init(SDL_Surface * surf);
29 void get_k(double & re, double & im);
30 void set_k(double re, double im);
32 private:
34 void draw_pixel(int x, int y, Uint32 * color);
35 void set_name();
37 double k_re;
38 double k_im;
39 };
41 #endif