44ee7517441366796ea42cebcaf25bf6aadc6a16
[GPU.git] / 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 using std::cout;
14 using std::endl;
15 using std::string;
16
17 /*----------------------------------------------------------------------*\
18 |* Declaration *|
19 \*---------------------------------------------------------------------*/
20
21 /*--------------------------------------*\
22 |* Imported *|
23 \*-------------------------------------*/
24
25 /*--------------------------------------*\
26 |* Public *|
27 \*-------------------------------------*/
28
29 int mainGL(void);
30
31 /*--------------------------------------*\
32 |* Private *|
33 \*-------------------------------------*/
34
35 /*----------------------------------------------------------------------*\
36 |* Implementation *|
37 \*---------------------------------------------------------------------*/
38
39 /*--------------------------------------*\
40 |* Public *|
41 \*-------------------------------------*/
42
43 int mainGL(void)
44 {
45 Rippling0Image* ptrRippling0 = Rippling0Provider::createGL();
46 Image* ptrRippling = RipplingProvider::createGL();
47 // TODO : Insert autres Images ...
48
49 bool isAnimation = true;
50 bool isSelection = true;
51
52 GLUTImageViewers rippling0Viewer(ptrRippling0, isAnimation, isSelection, 0, 0);
53 GLUTImageViewers ripplingViewer(ptrRippling, isAnimation, isSelection, 10, 10);
54 // TODO : Insert here autres ImageViewers ...
55
56 GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte
57
58 // destruction
59 {
60 delete ptrRippling0;
61 delete ptrRippling;
62
63 ptrRippling0 = NULL;
64 ptrRippling = NULL;
65 }
66
67 return EXIT_SUCCESS;
68 }
69
70 /*--------------------------------------*\
71 |* Private *|
72 \*-------------------------------------*/
73
74 /*----------------------------------------------------------------------*\
75 |* End *|
76 \*---------------------------------------------------------------------*/
77