Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 01_Rippling / moo / device / math / RipplingMath.h
diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/device/math/RipplingMath.h
new file mode 100755 (executable)
index 0000000..74c4dfc
--- /dev/null
@@ -0,0 +1,80 @@
+#ifndef RIPPLING_MATH_H_\r
+#define RIPPLING_MATH_H_\r
+\r
+#include <math.h>\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class RipplingMath\r
+    {\r
+\r
+       /*--------------------------------------*\\r
+       |*              Constructor             *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       __device__\r
+       RipplingMath(int w, int h)\r
+           {\r
+           // TODO\r
+           }\r
+\r
+       __device__\r
+       RipplingMath(const RipplingMath& source)\r
+           {\r
+           // TODO\r
+           }\r
+\r
+       /*--------------------------------------*\\r
+       |*              Methodes                *|\r
+        \*-------------------------------------*/\r
+\r
+    public:\r
+\r
+       /**\r
+        * x=pixelI\r
+        * y=pixelJ\r
+        */\r
+       __device__\r
+       void color(int i, int j, float t, uchar4& color)\r
+           {\r
+           // Debug (a mettre en commentaire)\r
+               {\r
+               unsigned char levelGris = 128; //in [0.255]  (debug image)\r
+               color.x = levelGris;\r
+               color.y = levelGris;\r
+               color.z = levelGris;\r
+               }\r
+\r
+           // Vrai problem\r
+               {\r
+               // TODO\r
+               }\r
+\r
+           //color.w = 255; // opaque\r
+           }\r
+\r
+    private:\r
+\r
+       /*--------------------------------------*\\r
+       |*              Attributs               *|\r
+        \*-------------------------------------*/\r
+\r
+    private:\r
+\r
+       // Tools\r
+\r
+    };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r