# Can one access glviewer in glvox2 tutorial?

**URL:** <https://root-forum.cern.ch/t/can-one-access-glviewer-in-glvox2-tutorial/59733>\
**Category:** Newbie\
**Created:** [June 21, 2024, 1:17pm UTC](https://root-forum.cern.ch/t/can-one-access-glviewer-in-glvox2-tutorial/59733 "2024-06-21T13:17:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phifle](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@phifle](https://root-forum.cern.ch/u/phifle)\
**Post date:** [June 21, 2024, 1:17pm UTC](https://root-forum.cern.ch/t/can-one-access-glviewer-in-glvox2-tutorial/59733/1 "2024-06-21T13:17:49Z")

</div>

I have a question regarding the tutorial gl/glvox2.C  
I assume that internally some kind of TGLViewer is used. Is there a way to get a pointer to this viewer? Or is my assumption wrong?

* * *

_ROOT Version:_ 6.30/04

* * *

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 21, 2024, 1:29pm UTC](https://root-forum.cern.ch/t/can-one-access-glviewer-in-glvox2-tutorial/59733/2 "2024-06-21T13:29:32Z")

</div>

Hi Phifle,

Thanks for the post and welcome to the ROOT Community!

I am adding in the loop the experts: @couet @bellenot @linev .

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 21, 2024, 1:39pm UTC](https://root-forum.cern.ch/t/can-one-access-glviewer-in-glvox2-tutorial/59733/3 "2024-06-21T13:39:23Z")

</div>

There is no ready-to-use GL viewer accessible to users. The logic, implemented by @tpochep , is in [TCanvas](https://github.com/root-project/root/blob/master/graf2d/gpad/src/TCanvas.cxx). Search for `fUseGL`.
