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
):
16 ptrOutput(TProvider::createGL()),
17 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
23 delete this->ptrOutput
;
28 template <class TOutput
>
33 GLUTImageViewers viewer
;
36 Viewer(TOutput
* output
, bool isAnimation
, bool isSelection
, int pxFrame
, int pyFrame
):
38 viewer(ptrOutput
, isAnimation
, isSelection
, pxFrame
, pyFrame
)
44 delete this->ptrOutput
;