#include <gmlviewport.h>
Public Member Functions | |
Viewport (int x, int y, int xres, int yres, Camera *camera=0) | |
void | GetResolution (int &xres, int &yres) const |
void | SetResolution (int xres, int yres) |
void | SetOrigin (int x, int y) |
void | GetOrigin (int &x, int &y) const |
const Matrix4x4d & | GetTransform () const |
void | SetTransform (const Matrix4x4d &view_transform) |
float | GetViewAngle () const |
void | SetViewAngle (float view_angle) |
const Camera * | GetCamera () const |
void | SetCamera (Camera *cam) |
Vector3d | GetViewVector () const |
get view vector of camera (normalized) | |
Vector3d | GetUpVector () const |
get up vector of camera (normalized) | |
Vector3d | GetRightVector () const |
get up vector of camera (normalized) | |
Vector3d | GetObserver () const |
get camera position | |
void | SetObserver (const Vector3d &obs) |
Matrix4x4d | GetRotation () const |
void | SetRotation (const Matrix4x4d &rot) |
void | SetDistanceToTarget (float dist) |
float | GetDistanceToTarget () const |