camera_controller_orbit_euler
Mouse and keyboard control of a camera_orbit_euler (default camera of the scene template).
Derives from: camera_controller_generic_base
Fields and methods
Members of the struct camera_controller_orbit_euler. Most of what you do with a CGP type goes through the free functions listed below.
Fields
camera_orbit_euler camera_model | Euler-angle orbit camera driven by the controller. |
Methods
| Returns camera_model as a read-only camera_generic_base. src | |
| Sets the axis_of_rotation (up direction of the orbit) of the camera. src | |
| Sets the axis_of_rotation of the camera to (1,0,0). src | |
| Sets the axis_of_rotation of the camera to (0,1,0). src | |
| Sets the axis_of_rotation of the camera to (0,0,1). src | |
| Places the camera at eye looking toward center; the third argument is ignored (the up vector is set by axis_of_rotation). src | |
| Updates the camera from the mouse displacement when the cursor is not on the GUI; left drag changes pitch and yaw, Ctrl + left drag pans, right drag (or K + left drag) changes the distance to the center, Ctrl + right drag translates the center front/back. src | |
| Twists axis_of_rotation at 2 radians per second while Shift + left/right arrow (or Shift + R/F) is held. src | |
| Returns a text describing the mouse and keyboard controls of the Euler orbit camera. src |
Inherited from camera_controller_generic_base (6 members)
Fields
bool is_active = true | Enables the controller, true by default; when false the mouse and idle actions return without moving the camera. |
input_devices* inputs = nullptr | Pointer to the global keyboard/mouse state, nullptr until initialize() is called. |
window_structure* window = nullptr | Pointer to the global window state, nullptr until initialize() is called. |
Functions taking a camera_controller_orbit_euler
None.
Functions returning a camera_controller_orbit_euler
None.
Operators
None.