Rippling CUDA Warmup et Smart.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 00_Rippling_warmup / Rippling0Provider.h
1 #ifndef RIPPLING_0_PROVIDER_H_
2 #define RIPPLING_0_PROVIDER_H_
3
4
5 #include "Rippling0Image.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class Rippling0Provider
16 {
17 public:
18
19 static Rippling0Image* createGL(void)
20 {
21 float dt = 2 * PI / 1000; // animation para
22
23 int dw = 16 * 60; // =32*30=960
24 int dh = 16 * 60; // =32*30=960
25
26 return new Rippling0Image(dw, dh, dt);
27 }
28
29 };
30
31 #endif
32
33 /*----------------------------------------------------------------------*\
34 |* End *|
35 \*---------------------------------------------------------------------*/
36