4 #include "RipplingMOO.h"
7 #include "RipplingMath.h"
13 /*----------------------------------------------------------------------*\
15 \*---------------------------------------------------------------------*/
17 /*--------------------------------------*\
19 \*-------------------------------------*/
21 /*--------------------------------------*\
23 \*-------------------------------------*/
25 /*----------------------------------------------------------------------*\
27 \*---------------------------------------------------------------------*/
29 /*--------------------------------------*\
31 \*-------------------------------------*/
33 RipplingMOO::RipplingMOO(unsigned int w
, unsigned int h
, float dt
)
39 RipplingMOO::~RipplingMOO(void)
45 /*--------------------------------------*\
47 \*-------------------------------------*/
49 void RipplingMOO::process(uchar4
* ptrTabPixels
, int w
, int h
)
53 entrelacementOMP(ptrTabPixels
); // Plus lent
57 forAutoOMP(ptrTabPixels
); // Plus rapide
60 isEntrelacement
=!isEntrelacement
;// Pour tester que les deux implementations fonctionnent
64 void RipplingMOO::animationStep()
73 float RipplingMOO::getT()
78 /*--------------------------------------*\
80 \*-------------------------------------*/
83 * Code entrainement Cuda
85 void RipplingMOO::entrelacementOMP(uchar4
* ptrTabPixels
)
91 * Code naturel et direct OMP
93 void RipplingMOO::forAutoOMP(uchar4
* ptrTabPixels
)
98 /*----------------------------------------------------------------------*\
100 \*---------------------------------------------------------------------*/