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