X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2F01_imageAPI%2FRippling0Image.h;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2F01_imageAPI%2FRippling0Image.h;h=b5360935d632c489e23e930ec0e2678d9a3b0d22;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h new file mode 100755 index 0000000..b536093 --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/01_imageAPI/Rippling0Image.h @@ -0,0 +1,69 @@ +#ifndef RIPPLING_0_IMAGE_H_ +#define RIPPLING_0_IMAGE_H_ + +#include "ImageMOOs_A.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling0Image: public ImageMOOs_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + Rippling0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 10); + virtual ~Rippling0Image(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + public: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + void fillImageGL(uchar4* ptrDevImageGL, int w, int h); + + /** + * Override, call periodicly by the api + */ + void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + void paintPrimitives(Graphic2Ds& graphic2D); + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + private: + + // Input + double dt; + + // Tools + double t; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/