Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 01_Rippling / moo / device / math / RipplingMath.h
1 #ifndef RIPPLING_MATH_H_
2 #define RIPPLING_MATH_H_
3
4 #include <math.h>
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 class RipplingMath
15 {
16
17 /*--------------------------------------*\
18 |* Constructor *|
19 \*-------------------------------------*/
20
21 public:
22
23 __device__
24 RipplingMath(int w, int h)
25 {
26 // TODO
27 }
28
29 __device__
30 RipplingMath(const RipplingMath& source)
31 {
32 // TODO
33 }
34
35 /*--------------------------------------*\
36 |* Methodes *|
37 \*-------------------------------------*/
38
39 public:
40
41 /**
42 * x=pixelI
43 * y=pixelJ
44 */
45 __device__
46 void color(int i, int j, float t, uchar4& color)
47 {
48 // Debug (a mettre en commentaire)
49 {
50 unsigned char levelGris = 128; //in [0.255] (debug image)
51 color.x = levelGris;
52 color.y = levelGris;
53 color.z = levelGris;
54 }
55
56 // Vrai problem
57 {
58 // TODO
59 }
60
61 //color.w = 255; // opaque
62 }
63
64 private:
65
66 /*--------------------------------------*\
67 |* Attributs *|
68 \*-------------------------------------*/
69
70 private:
71
72 // Tools
73
74 };
75
76 #endif
77
78 /*----------------------------------------------------------------------*\
79 |* End *|
80 \*---------------------------------------------------------------------*/