6 #include "GLUTImageViewers.h"
11 #include "Rippling0Provider.h"
12 #include "RipplingProvider.h"
13 #include "FractalProvider.h"
14 #include "NewtonProvider.h"
15 #include "HeatTransfertProvider.h"
16 #include "RayTracingProvider.h"
18 template <class TOutput
, class TProvider
>
23 GLUTImageViewers viewer
;
26 Viewer(bool isAnimation
, bool isSelection
, int pxFrame
, int pyFrame
):
27 ptrOutput(TProvider::createGL()),
28 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
32 Viewer(TOutput
* output
, bool isAnimation
, bool isSelection
, int pxFrame
, int pyFrame
):
34 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
40 delete this->ptrOutput
;
46 // Viewer<Rippling0Image, Rippling0Provider> rippling0(true, true, 10, 10);
47 // Viewer<Image, RipplingProvider> rippling0(true, true, 10, 10);
48 Viewer
<ImageFonctionel
, MandelbrotProvider
> fractalMandelbrot(MandelbrotProvider::createGL(true), true, true, 20, 20);
49 // Viewer<ImageFonctionel, JuliaProvider> fractalJulia(true, true, 30, 30);
50 // Viewer<ImageFonctionel, NewtonProvider> newtown(true, true, 20, 20);
51 // Viewer<Image, HeatTransfertProvider> heatTransfert(true, false, 20, 20);
52 // Viewer<ImageFonctionel, RayTracingProvider> rayTracing(true, true, 20, 20);
54 GLUTImageViewers::runALL(); // Bloquant, Tant qu'une fenetre est ouverte.