X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fmoo%2Fhost%2FRippling.h;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F01_Rippling%2Fmoo%2Fhost%2FRippling.h;h=0eb853ed796750d5676fa70d904c054749e26b45;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h new file mode 100755 index 0000000..0eb853e --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/01_Rippling/moo/host/Rippling.h @@ -0,0 +1,72 @@ +#ifndef RIPPLING_H_ +#define RIPPLING_H_ + +#include "cudaTools.h" +#include "Animable_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling: public Animable_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Rippling(int w, int h, float dt = 2 * PI / 10); + virtual ~Rippling(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + virtual void runGPU(uchar4* ptrDevPixels); + virtual void animationStep(void); + + virtual float getT(void); + virtual int getW(void); + virtual int getH(void); + + virtual string getTitle(void); + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/