Rippling CUDA Warmup et Smart.
[GPU.git] / WCudaMSE / Tuto_Image_Cuda / src / cpp / core / 00_Vague_warmup / 01_imageAPI / Vague0Image.h
1 #ifndef VAGUE_0_IMAGE_H_
2 #define VAGUE_0_IMAGE_H_
3
4 #include "ImageMOOs_A.h"
5 #include "MathTools.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class Vague0Image: public ImageMOOs_A
16 {
17 /*--------------------------------------*\
18 |* Constructeur *|
19 \*-------------------------------------*/
20
21 public:
22 Vague0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 1000);
23 virtual ~Vague0Image(void);
24
25 /*--------------------------------------*\
26 |* Methode *|
27 \*-------------------------------------*/
28
29 public:
30 /*----------------*\
31 |* Override *|
32 \*---------------*/
33
34 /**
35 * Override, call periodicly by the api
36 */
37 virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h);
38
39 /**
40 * Override, call periodicly by the api
41 */
42 virtual void animationStep(bool& isNeedUpdateView);
43
44 /**
45 * Override, call periodicly by the api
46 */
47 virtual void paintPrimitives(Graphic2Ds& graphic2D);
48
49 /*--------------------------------------*\
50 |* Attribut *|
51 \*-------------------------------------*/
52
53 private:
54 double dt;
55 double t;
56 };
57
58 #endif
59
60 /*----------------------------------------------------------------------*\
61 |* End *|
62 \*---------------------------------------------------------------------*/