* Ajout d'un exemple CUDA non-openGL (AddVector.cu)
[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 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 const bool isAnimation = true;
50 const 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 delete ptrRippling0;
60 delete ptrRippling;
61
62 return EXIT_SUCCESS;
63 }
64
65 /*--------------------------------------*\
66 |* Private *|
67 \*-------------------------------------*/
68
69 /*----------------------------------------------------------------------*\
70 |* End *|
71 \*---------------------------------------------------------------------*/
72