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