Camera in openGL

anyone knows how to create an interactive camera in openGL responsed to the keyboard input, like ‘W’ means going forward, ‘S’ means going backward, ‘D’ ratate the scene clockwise, ‘A’ ratate the scene anti-clockwise.

Thanks in advance

create a class that does the transformation for you

The Red Book (also known as the OpenGL Programming Guide) is your friend, especially the chapter on viewing. It’ll tell you how to position the camera and move it around in your scene, or, alternatively, fix the camera’s position and move the objects in the scene.

If you don’t have a copy of the Red Book I believe you can find HTML and PDF versions of an older edition on this site. But get a copy if can swing it – it’s essential if you’re serious about learning OpenGL.

Hi!
If you didn’t find it yet, this is the code i think you need.
A c++ class just named Camera that allows you to move or strafe in all directions you want.

http://twiki.dsi.uniroma1.it/twiki/view/Grafica3d/WebHome/camera.zip

I hope it will help,
bye