-/*----------------------------------------------------------------------*\\r
- |* Declaration *|\r
- \*---------------------------------------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Imported *|\r
- \*-------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Public *|\r
- \*-------------------------------------*/\r
-\r
-int mainGL(void);\r
-\r
-/*--------------------------------------*\\r
- |* Private *|\r
- \*-------------------------------------*/\r
-\r
-/*----------------------------------------------------------------------*\\r
- |* Implementation *|\r
- \*---------------------------------------------------------------------*/\r
-\r
-/*--------------------------------------*\\r
- |* Public *|\r
- \*-------------------------------------*/\r
+class RipplingViewer\r
+ {\r
+ public:\r
+ RipplingViewer()\r
+ : ptrRippling0(Rippling0Provider::createGL()), ptrRippling(RipplingProvider::createGL()),\r
+ rippling0Viewer(this->ptrRippling0, true, true, 0, 0),\r
+ ripplingViewer(this->ptrRippling, true, true, 20, 20)\r
+ {}\r
+ ~RipplingViewer()\r
+ {\r
+ delete this->ptrRippling0;\r
+ delete this->ptrRippling;\r
+ }\r
+ private:\r
+ Rippling0Image* ptrRippling0;\r
+ Image* ptrRippling;\r
+ GLUTImageViewers rippling0Viewer, ripplingViewer;\r
+ };\r
+\r
+class FractalViewer\r
+ {\r
+ public:\r
+ FractalViewer()\r
+ : ptrMandelbrot(FractalProvider::createMandelbrotGL()), ptrJulia(FractalProvider::createJuliaGL()),\r
+ mandelbrotViewer(this->ptrMandelbrot, true, true, 0, 0),\r
+ juliaViewer(this->ptrJulia, true, true, 20, 20)\r
+ {}\r
+ ~FractalViewer()\r
+ {\r
+ delete this->ptrMandelbrot;\r
+ delete this->ptrJulia;\r
+ }\r
+ private:\r
+ ImageFonctionel* ptrMandelbrot;\r
+ ImageFonctionel* ptrJulia;\r
+ GLUTImageViewers mandelbrotViewer, juliaViewer;\r
+ };\r