#include <Camera.h>


Public Member Functions | |
| Camera (int width_in, int height_in, float fov_in=60, float nearclip_in=0.1, float farclip_in=2000.0, int type_in=CAMERA_FREE) | |
| Camera () | |
| ~Camera () | |
| void | control (int controllerId, int motionId, float value) |
| void | setSize (int width_in, int height_in) |
| void | setFOV (float fov_in) |
| void | setAspect (float aspect_in) |
| void | setAspect (int screen_w, int screen_h) |
| void | setPosition (const XYZ &pos) |
| void | setRotation (const XYZ &pos) |
| void | setTarget (const XYZ &pos) |
| void | bindTarget (SceneObject *sceneObj) |
| void | trackTarget (float trackingSpeed, float safeDistance) |
| void | moveViewRelative (XYZ &pt, float xdelta, float zdelta) |
| btVector3 | getRayTo (int x, int y) |
| Vector | getRay (int x, int y) |
| void | setClip (float near_in, float far_in) |
| void | setType (int type_in) |
| void | setup () |
Public Attributes | |
| unsigned short | type |
| double | fov |
| double | aspect |
| double | nearclip |
| double | farclip |
| int | width |
| int | height |
| float | projectionMatrix [16] |
| float | viewMatrix [16] |
| XYZ | position |
| XYZ | rotation |
| XYZ | target |
| Vector | up |
| Vector | right |
| SceneObject * | sceneObjTarget |
Static Public Attributes | |
| static Camera * | lastActive = NULL |
| Camera::Camera | ( | int | width_in, | |
| int | height_in, | |||
| float | fov_in = 60, |
|||
| float | nearclip_in = 0.1, |
|||
| float | farclip_in = 2000.0, |
|||
| int | type_in = CAMERA_FREE | |||
| ) |

| Camera::Camera | ( | ) |

| Camera::~Camera | ( | ) |
| void Camera::control | ( | int | controllerId, | |
| int | motionId, | |||
| float | value | |||
| ) | [virtual] |
Implements Controllable.
| void Camera::setSize | ( | int | width_in, | |
| int | height_in | |||
| ) |
| void Camera::setFOV | ( | float | fov_in | ) |
| void Camera::setAspect | ( | float | aspect_in | ) |
| void Camera::setAspect | ( | int | screen_w, | |
| int | screen_h | |||
| ) |
| void Camera::setPosition | ( | const XYZ & | pos | ) |
| void Camera::setRotation | ( | const XYZ & | pos | ) |
| void Camera::setTarget | ( | const XYZ & | pos | ) |
| void Camera::bindTarget | ( | SceneObject * | sceneObj | ) |
| void Camera::trackTarget | ( | float | trackingSpeed, | |
| float | safeDistance | |||
| ) |

| void Camera::moveViewRelative | ( | XYZ & | pt, | |
| float | xdelta, | |||
| float | zdelta | |||
| ) |
| btVector3 Camera::getRayTo | ( | int | x, | |
| int | y | |||
| ) |

| Vector Camera::getRay | ( | int | x, | |
| int | y | |||
| ) |

| void Camera::setClip | ( | float | near_in, | |
| float | far_in | |||
| ) |
| void Camera::setType | ( | int | type_in | ) |
| void Camera::setup | ( | ) |

| unsigned short Camera::type |
| double Camera::fov |
| double Camera::aspect |
| double Camera::nearclip |
| double Camera::farclip |
| int Camera::width |
| int Camera::height |
Camera * Camera::lastActive = NULL [static] |
| float Camera::projectionMatrix[16] |
| float Camera::viewMatrix[16] |
1.5.6