Algorithm to zoom into mouse(OpenGL)

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-06T03:14:44Z Indexed on 2010/06/06 3:22 UTC
Read the original article Hit count: 212

Filed under:
|
|

I have an OpenGL scene with a top left coordinate system. When I glScale it zooms in from (0,0) the top left. I want it to zoom in from the mouse's coordinate (reletive to the OGL frame). How is this done? Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c