Re: How to Zoom in and Zoom Out using JOGL?
Posted by
gouessej on
May 27, 2018; 9:20pm
URL: https://forum.jogamp.org/How-to-Zoom-in-and-Zoom-Out-using-JOGL-tp4038867p4038894.html
Why do you mean by "i need to extends to AWT"? You just need to implement the interface MouseWheelListener and to add it into your GLCanvas by calling
this method.
A simple solution consists in modifying the field of view in your projection matrix, look at glFrustum or gluPerpective if you use the perspective projection or glOrtho if you use the parallel projection.