pgl
PrimitiveOpenGL3Dprimitivelibrary
|
Camera Controller which orbits around a center. More...
#include <controller.h>
Public Member Functions | |
OrbitController (Camera *_camera) | |
void | view (double _azimuth, double _elevation, double _distance) |
void | click (int button, int action, int, double xpos, double ypos) |
Click handler. | |
void | scroll (double, double yoffset) |
Scroll wheel handler. | |
void | motion (double xpos, double ypos) |
Mouse motion handler. | |
void | apply () |
![]() | |
Controller (Camera *_camera) | |
Public Attributes | |
Vector3 | center |
double | azimuth |
double | elevation |
double | distance |
![]() | |
Camera * | camera |
Camera to move. | |
Protected Types | |
enum | { modeNone, modeAngle, modeDistance, modeCenter } |
Protected Attributes | |
Vector3 | old_center_ |
double | old_azimuth_ |
double | old_elevation_ |
double | old_distance_ |
double | old_xpos_ |
double | old_ypos_ |
enum pgl::OrbitController:: { ... } | mode_ |
Camera Controller which orbits around a center.