Ajout du squelette de Newton.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / mainGL.cpp
1 #include <iostream>
2 #include <stdlib.h>
3 #include <string.h>
4
5 #include "GLUTImageViewers.h"
6
7 #include "Device.h"
8 #include "cudaTools.h"
9
10 #include "Rippling0Provider.h"
11 #include "RipplingProvider.h"
12
13 #include "FractalProvider.h"
14
15 using std::cout;
16 using std::endl;
17 using std::string;
18
19 /*----------------------------------------------------------------------*\
20 |* Declaration *|
21 \*---------------------------------------------------------------------*/
22
23 /*--------------------------------------*\
24 |* Imported *|
25 \*-------------------------------------*/
26
27 /*--------------------------------------*\
28 |* Public *|
29 \*-------------------------------------*/
30
31 int mainGL(void);
32
33 /*--------------------------------------*\
34 |* Private *|
35 \*-------------------------------------*/
36
37 /*----------------------------------------------------------------------*\
38 |* Implementation *|
39 \*---------------------------------------------------------------------*/
40
41 /*--------------------------------------*\
42 |* Public *|
43 \*-------------------------------------*/
44
45 int mainGL(void)
46 {
47 //Rippling0Image* ptrRippling0 = Rippling0Provider::createGL();
48 //Image* ptrRippling = RipplingProvider::createGL();
49 //ImageFonctionel* ptrFractalMandelbrot = FractalProvider::createMandelbrotGL();
50 //ImageFonctionel* ptrFractalJulia = FractalProvider::createJuliaGL();
51
52 const bool isAnimation = true;
53 const bool isSelection = true;
54
55 //GLUTImageViewers rippling0Viewer(ptrRippling0, isAnimation, isSelection, 0, 0);
56 //GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelection, 10, 10);
57 //GLUTImageViewers fractalMandelbrotViewer(ptrFractalMandelbrot, true, true, 20, 20);
58 //GLUTImageViewers fractalJuliaViewer(ptrFractalJulia, true, true, 20, 20);
59
60 GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte
61
62 // destruction
63 //delete ptrRippling0;
64 //delete ptrRippling;
65 //delete ptrFractalMandelbrot;
66 delete ptrFractalJulia;
67
68 return EXIT_SUCCESS;
69 }
70
71 /*--------------------------------------*\
72 |* Private *|
73 \*-------------------------------------*/
74
75 /*----------------------------------------------------------------------*\
76 |* End *|
77 \*---------------------------------------------------------------------*/
78