X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2FRippling0Provider.h;fp=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F00_Rippling_warmup%2FRippling0Provider.h;h=bc730be144347b2cb0bde041cd5f995c305eeb1d;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h new file mode 100755 index 0000000..bc730be --- /dev/null +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/00_Rippling_warmup/Rippling0Provider.h @@ -0,0 +1,36 @@ +#ifndef RIPPLING_0_PROVIDER_H_ +#define RIPPLING_0_PROVIDER_H_ + + +#include "Rippling0Image.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Rippling0Provider + { + public: + + static Rippling0Image* createGL(void) + { + float dt = 2*PI/1000; // animation para + + int dw = 16 * 60; // =32*30=960 + int dh = 16 * 60; // =32*30=960 + + return new Rippling0Image(dw, dh, dt); + } + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +