* Ajout d'un exemple CUDA non-openGL (AddVector.cu)
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 01_Rippling / provider / RipplingProvider.cpp
1 #include "RipplingProvider.h"
2
3
4 /*----------------------------------------------------------------------*\
5 |* Declaration *|
6 \*---------------------------------------------------------------------*/
7
8 /*--------------------------------------*\
9 |* Imported *|
10 \*-------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Public *|
14 \*-------------------------------------*/
15
16 /*--------------------------------------*\
17 |* Private *|
18 \*-------------------------------------*/
19
20 /*----------------------------------------------------------------------*\
21 |* Implementation *|
22 \*---------------------------------------------------------------------*/
23
24 /*--------------------------------------*\
25 |* Public *|
26 \*-------------------------------------*/
27
28 /*-----------------*\
29 |* static *|
30 \*----------------*/
31
32 Rippling* RipplingProvider::createMOO()
33 {
34 const float dt = 1;
35 const int dw = 16 * 60; // =32*30=960
36 const int dh = 16 * 60; // =32*30=960
37
38 return new Rippling(dw, dh, dt);
39 }
40
41 Image* RipplingProvider::createGL(void)
42 {
43 return new Image(createMOO());
44 }
45
46 /*--------------------------------------*\
47 |* Private *|
48 \*-------------------------------------*/
49
50 /*----------------------------------------------------------------------*\
51 |* End *|
52 \*---------------------------------------------------------------------*/