0

Can anybody guide me to implement mouse based zoom in, zoom out, and then scroll up,down,left,right (like in adobe reader while viewing pdf file). I m using openGL.

5
Contributors
5
Replies
6
Views
10 Years
Discussion Span
Last Post by rafaele-elvis
0

Is this for 2D or 3D?

3D with OpenGL (JOGL bindings in particular), though you can certainly do 2D work with OpenGL as well.

Edit: The NeHe tutorials have code portings for many different languages available at the bottom of each lesson, so those are not specific to JOGL (which are for Java).

0

User input is not handled ( or ever mentioned ) in the OpenGL specification. It is a graphics spec not an input spec.

There are libs that provide this functionality for OGL apps in a multiplatform way, i.e. glut and SDL... but keyboard and mouse handling is otherwise platform dependant. You should probably use one of these libs ( the windows API will also provide this functionality, but it's then platform dependant ).

So, more important than using 'OpenGL', what OS are you using, what development language are you using, and what libs would you be prepared to use aswell as OGL.

-1

Hi every one,

I need the code in C or C++. Are there any body give me the code?

Thanks in advance.

Votes + Comments
Stop resurrecting old threads to post "Give me teh codez"
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.