Using OpenGL in a compiled program

I think with the Qt-layer on you still can achieve what you need with ease. Qt-layer allows you to combine the ROOT graphics and third party Qt-widget. In your particular case, you can use, for example, QGLViewer. I have attached the fully working short example (There is a short README inside). The example shows the interactive Qt application that combines QGLViewer example:
artis.imag.fr/Members/Gilles.Deb … ation.html
and the ROOT TCanvas with 2D histogram in to represent the particles “speed vs position”. (ACliC can be usee also) (The small resolution image attached. See root.bnl.gov/QtRoot/pictures/HelloGlViewer.gif for better quality.) You can try it against of any not too old ROOT version.

To customize this example for your needs replace the method

void Particle::draw() { glColor3f(age_/(float)ageMax_, age_/(float)ageMax_, 1.0); glVertex3fv(pos_); }with your own OpenGL model. It should be trivial.
See nikhef.nl/acat07/parallel3.php for some details.


HelloGLViewer.tar.gz (3.83 KB)