X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fc_math%2FRipplingMath.h;fp=WCudaMSE%2FStudent_OMP_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fc_math%2FRipplingMath.h;h=e57ccbecefa8cf65f4f40eb3287688290e6091b1;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h new file mode 100755 index 0000000..e57ccbe --- /dev/null +++ b/WCudaMSE/Student_OMP_Image/src/cpp/core/01_Rippling/c_math/RipplingMath.h @@ -0,0 +1,75 @@ +#ifndef RIPPLING_MATH_H_ +#define RIPPLING_MATH_H_ + +#include +using namespace std; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Dans un header only pour preparer la version cuda + */ +class RipplingMath + { + + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + RipplingMath(unsigned int w, unsigned int h)) + { + this->dim2 = w / 2; + } + + virtual ~RipplingMath(void) + { + //rien + } + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + void colorIJ(uchar4* ptrColor, int i, int j, float t) + { + // TODO + math::sin(9.1); +asda + double a { 4 / 3 }; + } + + private: + + void dxy(int i, int j, float* ptrResult) // par exmple + { + //TODO + } + + private: + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Tools + double dim2; //=dim/2 + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/