OpenArena::Camera camera.h OpenArena::Camera::Camera () Camera Creates a new Camera object. Creates a new Camera object located at the origin, pointing at the negative z-axis with up being the positive y-axis. Vec3f Vec3f OpenArena::Camera::Position () Position Returns this Camera's position. This Camera's position as a Vec3d vector. Returns this Camera's position. Vec3d Vec3f OpenArena::Camera::View () View Returns the view vector of this camera. The view vector of this camera. Vec3d Vec3f OpenArena::Camera::UpVector () UpVector Returns a vector pointing up with respect to the view. A vector pointing up with respect to the view. Vec3d Vec3f OpenArena::Camera::Strafe () Strafe Returns this Camera's strafe vector. The strafe axis is an axis perpendicular to both the up vector and the view vector.This Camera's strafe vector. void void OpenArena::Camera::PositionCamera (double xpos, double ypos, double zpos, double xview, double yview, double zview, double xup, double yup, double zup) PositionCamera double xpos double ypos double zpos double xview double yview double zview double xup double yup double zup Relocates and reorients this Camera. xpos The x-coordinate of the new position vector. ypos The y-coordinate of the new position vector. zpos The z-coordinate of the new position vector. xview The x-coordinate of the new view vector. yview The y-coordinate of the new view vector. zview The z-coordinate of the new view vector. xup The x-coordinate of the new up vector. yup The y-coordinate of the new up vector. zup The z-coordinate of the new up vector. void void OpenArena::Camera::PositionCamera (Vec3d pos, Vec3d view, Vec3d up) PositionCamera Vec3d pos Vec3d view Vec3d up Relocates and reorients this Camera. pos The new position vector. view The new view vector. up The new up vector. void void OpenArena::Camera::RotateView (double angle, Vec3d axis) RotateView double angle Vec3d axis Rotates the camera a given ammount around a given axis. angle The number of degrees to rotate. axis A vector representing the axis to rotate around. This method passes the arguments to glRotatef() void void OpenArena::Camera::RotateView (double angle, double X, double Y, double Z) RotateView double angle double X double Y double Z Rotates the camera a given ammount around a given axis. angle The number of degrees to rotate. X The x component of the vector representing the axis to rotate around Y The y component of the vector representing the axis to rotate around Z The z component of the vector representing the axis to rotate around The vector should be normalized as the values get passed directly to glRotatef(). void void OpenArena::Camera::SetViewByMouse (Window window) SetViewByMouse Window window Updates the view and up vectors based on mouse movement. window The Window used to get the mouse coordinates. This will be removed in favor of some sort of event trigger. void void OpenArena::Camera::StrafeCamera (double speed) StrafeCamera double speed Moves the camera along its strafe axis a given distance. speed The distance to move. void void OpenArena::Camera::MoveCamera (double speed) MoveCamera double speed Moves the camera along its view vector a given number of units. speed The distance to move the camera. void void OpenArena::Camera::Update () Update Recalculates the strafe vector. void void OpenArena::Camera::Look () Look Calls gluLookAt to tell OpenGL where to render from. Uses the position, view, and up vectors. void void OpenArena::Camera::RotateHorizontal (float angle) RotateHorizontal float angle Write brief comment for RotateHorizontal here. angle Description of parameter angle. <exception class> Description of criteria for throwing this exception. Write detailed description for RotateHorizontal here.Write remarks for RotateHorizontal here. Separate items with the '|' character. void void OpenArena::Camera::RotateVertical (float angle) RotateVertical float angle Write brief comment for RotateVertical here. angle Description of parameter angle. <exception class> Description of criteria for throwing this exception. Write detailed description for RotateVertical here.Write remarks for RotateVertical here. Separate items with the '|' character. Vec3f Vec3f OpenArena::Camera::GetUpVector () GetUpVector Write brief comment for GetUpVector here. Write description of return value here. <exception class> Description of criteria for throwing this exception. Write detailed description for GetUpVector here.Write remarks for GetUpVector here. Separate items with the '|' character. Vec3f Vec3f OpenArena::Camera::GetRightVector () GetRightVector Write brief comment for GetRightVector here. Write description of return value here. <exception class> Description of criteria for throwing this exception. Write detailed description for GetRightVector here.Write remarks for GetRightVector here. Separate items with the '|' character. Vec3f Vec3f OpenArena::Camera::GetForwardVector () GetForwardVector Write brief comment for GetForwardVector here. Write description of return value here. <exception class> Description of criteria for throwing this exception. Write detailed description for GetForwardVector here.Write remarks for GetForwardVector here. Separate items with the '|' character. void void OpenArena::Camera::UpdateVectors () UpdateVectors Vec3f Vec3f OpenArena::Camera::m_vPosition m_vPosition Vec3f Vec3f OpenArena::Camera::m_vView m_vView Vec3f Vec3f OpenArena::Camera::m_vUpVector m_vUpVector Vec3f Vec3f OpenArena::Camera::m_vStrafe m_vStrafe The Camera class represents a camera or view in 3-dimensional space. The Camera class maintains location, view, and orientation (up view) vectors. The Camera can be moved and rotated in any direction. It includes a wrapper, Look(), for gluLookAt. m_vUpVector m_vView m_vStrafe m_vPosition OpenArena::CameraCamera OpenArena::CameraGetForwardVector OpenArena::CameraGetRightVector OpenArena::CameraGetUpVector OpenArena::CameraLook OpenArena::Cameram_vPosition OpenArena::Cameram_vStrafe OpenArena::Cameram_vUpVector OpenArena::Cameram_vView OpenArena::CameraMoveCamera OpenArena::CameraPosition OpenArena::CameraPositionCamera OpenArena::CameraPositionCamera OpenArena::CameraRotateHorizontal OpenArena::CameraRotateVertical OpenArena::CameraRotateView OpenArena::CameraRotateView OpenArena::CameraSetViewByMouse OpenArena::CameraStrafe OpenArena::CameraStrafeCamera OpenArena::CameraUpdate OpenArena::CameraUpdateVectors OpenArena::CameraUpVector OpenArena::CameraView