Ajout de l'ensemble du workspace.
[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
23 Vague0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 1000);
24 virtual ~Vague0Image(void);
25
26 /*--------------------------------------*\
27 |* Methode *|
28 \*-------------------------------------*/
29
30 public:
31
32 /*----------------*\
33 |* Override *|
34 \*---------------*/
35
36 /**
37 * Override, call periodicly by the api
38 */
39 virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h);
40
41 /**
42 * Override, call periodicly by the api
43 */
44 virtual void animationStep(bool& isNeedUpdateView);
45
46 /**
47 * Override, call periodicly by the api
48 */
49 virtual void paintPrimitives(Graphic2Ds& graphic2D);
50
51 /*--------------------------------------*\
52 |* Attribut *|
53 \*-------------------------------------*/
54
55 private:
56
57 double dt;
58 double t;
59
60 };
61
62 #endif
63
64 /*----------------------------------------------------------------------*\
65 |* End *|
66 \*---------------------------------------------------------------------*/