Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_OMP_Image / src / main.cpp
1 #include <iostream>
2
3 #include "MathTools.h"
4 #include "GLUTImageViewers.h"
5
6 #include "RipplingProvider.h"
7
8 using std::cout;
9 using std::endl;
10
11 /*----------------------------------------------------------------------*\
12 |* Declaration *|
13 \*---------------------------------------------------------------------*/
14
15 /*--------------------------------------*\
16 |* Imported *|
17 \*-------------------------------------*/
18
19 /*--------------------------------------*\
20 |* Public *|
21 \*-------------------------------------*/
22
23 int main(int argc, char** argv);
24
25 /*--------------------------------------*\
26 |* Private *|
27 \*-------------------------------------*/
28
29 static int run(void);
30
31 /*----------------------------------------------------------------------*\
32 |* Implementation *|
33 \*---------------------------------------------------------------------*/
34
35 /*--------------------------------------*\
36 |* Public *|
37 \*-------------------------------------*/
38
39 int main(int argc, char** argv)
40 {
41 cout << "main" << endl;
42
43 GLUTImageViewers::init(argc, argv); // call once
44
45 return run(); // Bloquant, Tant qu'une fenetre est ouverte
46 }
47
48 int run(void)
49 {
50 bool isAnimation = true;
51 bool isSelectionEnable = false;
52
53 RipplingImage* ptrRippling = RipplingProvider::create();
54
55 GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelectionEnable, 20, 20);
56 // Insert here other viewers ...
57
58 GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte
59
60 // destruction
61 {
62 delete ptrRippling;
63
64 ptrRippling = NULL;
65 }
66
67 return EXIT_SUCCESS;
68 }
69
70 /*--------------------------------------*\
71 |* Private *|
72 \*-------------------------------------*/
73
74 /*----------------------------------------------------------------------*\
75 |* End *|
76 \*---------------------------------------------------------------------*/
77