X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F01_Vague_smart%2Fmoo%2Fhost%2FVague.h;fp=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F01_Vague_smart%2Fmoo%2Fhost%2FVague.h;h=b2f2acdf2843d088c0f957c3a0750d997bd3bc88;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h new file mode 100755 index 0000000..b2f2acd --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/01_Vague_smart/moo/host/Vague.h @@ -0,0 +1,75 @@ +#ifndef VAGUE_H_ +#define VAGUE_H_ + +#include "cudaTools.h" +#include "Animable_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Vague: public Animable_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Vague(int w, int h, float dt = 2 * PI / 1000); + virtual ~Vague(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override + * Call periodicly by the API + */ + virtual void animationStep(void); + + virtual void runGPU(uchar4* ptrDevPixels); // Override + + virtual float getT(void); // Override + virtual int getW(void); // Override + virtual int getH(void); // Override + + virtual string getTitle(void); // Override + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/