mardi 23 mai 2017

implement model rotation using GTKmm and OpenGL

I am using Gtkmm and OpenGL to code an UI for a CAD software. I am using the GLArea widget to display my model. I would like to rotate my displayed model by pressing and hold the middle button then drag the mouse across the glarea.

I was wondering if implementing this functionality is any different then listening for button event like in this post: stack post. Do I have to listen to the button release? I know I have to add add_events(Gdk::BUTTON2_MOTION_MASK);

And what is the frame rate of the GLArea widget?

Aucun commentaire:

Enregistrer un commentaire