5 * Crée une instance automatiquement de 'TOutput' en appelant 'TProvider::createGL()'.
7 template <class TOutput
, class TProvider
>
12 GLUTImageViewers viewer
;
15 AutoViewer(bool isAnimation
, bool isSelection
, int pxFrame
, int pyFrame
, bool run
= true):
16 ptrOutput(TProvider::createGL()),
17 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
20 GLUTImageViewers::runALL();
25 delete this->ptrOutput
;
30 template <class TOutput
>
35 GLUTImageViewers viewer
;
38 Viewer(TOutput
* output
, bool isAnimation
, bool isSelection
, int pxFrame
, int pyFrame
, bool run
= true):
40 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
43 GLUTImageViewers::runALL();
48 delete this->ptrOutput
;