Cleanage.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 02_Mandelbrot_Julia / provider / FractalProvider.cpp
1 #include "FractalProvider.h"
2
3 Fractal* MandelbrotProvider::create()
4 {
5 int dw = 16 * 50;
6 int dh = 16 * 30;
7
8 return new FractalMandelbrot(dw, dh, 1);
9 }
10
11 Fractal* JuliaProvider::create()
12 {
13 int dw = 16 * 50;
14 int dh = 16 * 30;
15
16 return new FractalJulia(dw, dh, 300, -0.745, -0.32, -0.09, 0.1);
17 }
18
19 ImageFonctionel* MandelbrotProvider::createGL()
20 {
21 ColorRGB_01* ptrColorTitre = new ColorRGB_01(0, 0, 100);
22 return new ImageFonctionel(create(), ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel
23 }
24
25 ImageFonctionel* JuliaProvider::createGL()
26 {
27 ColorRGB_01* ptrColorTitre = new ColorRGB_01(0, 0, 100);
28 return new ImageFonctionel(create(), ptrColorTitre); // both ptr destroy by destructor of ImageFonctionel
29 }