Using GLFW

Hello,

I am new to openframeworks, it’s really cool and I’m excited to be using it.
I am writing an application and I wanted to use the mouse scroll wheel to zoom the camera in, but GLUT doesn’t support mouse wheel events (or any of the mouse buttons beyond left, right, and middle click). I tried using a patched version of GLUT that I found thanks to this thread: http://forum.openframeworks.cc/t/scroll-wheel-event/593/0. But I couldn’t get it to work.

So I decided to try using GLFW, using the very handy example from this thread: http://forum.openframeworks.cc/t/multisampling-ubuntu/2483/0. It works pretty well, and I can get all the events I need, but there are some differences I see between the two. I took screen caps of advanced3dExample using both GLUT and GLFW on Windows 7:

GLUT:

GLFW:

Does anyone use GLFW instead of GLUT in Openframeworks? Had anyone run into this kind of thing before? Are there any graphics libraries I can just drop in place of GLUT without having to change anything?

Thank you very much for your time.

it looks like this has something to do with the way the viewport handling code works? i would look around to see if there is some difference between GLUT and GLFW with setting the viewport.