X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fmoo%2Fhost%2FDamier.h;fp=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fmoo%2Fhost%2FDamier.h;h=deff214454f3536e93587faafbe8b4ba8371374c;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h new file mode 100755 index 0000000..deff214 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/02_Damier_Zoomable/moo/host/Damier.h @@ -0,0 +1,84 @@ +#ifndef DAMIER_H_ +#define HELLO_FONCTIONEL_H_ + +#include "cudaTools.h" +#include "AnimableFonctionel_I.h" +#include "MathTools.h" +#include "VariateurF.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Damier: public AnimableFonctionel_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Damier(int w, int h, float dt, int n); + virtual ~Damier(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + + /** + * Override + * Call periodicly by the API + */ + virtual void animationStep(void); + + void runGPU(uchar4* ptrDevPixels, const DomaineMath& domaineMath); // Override + + /** + * Para animation + */ + float getT(void); // Override + int getW(void); // Override + int getH(void); // Override + DomaineMath* getDomaineMathInit(void); // Override + string getTitle(void); // Override + + + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + int n; + + // Tools + dim3 dg; + dim3 db; + float t; // para animation + VariateurF variateurAnimation; // varier t + DomaineMath* ptrDomaineMathInit; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/