I am experimenting with openGL for the first time. I am trying to create a scene and then be able to move through it. I want to use both the mouse and keyboard. The mouse will be used to look around the scene and the keyboard will be used to move back and forth (much like unreal tournament). The part I am having problems with is looking around the scene from a fixed reference point. I figure I should startwith a structure like this:
float positionX, positionY, positionZ;
float orientationX, orientationY, orientationZ;
to track the position of the camera. Asuming I already have a function to change all the variables in this struct when the player moves, how should I go about my transformations to display the scene based on the position of the player?