diff options
author | Marius Kintel <marius@kintel.net> | 2011-08-05 01:27:17 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-08-05 01:27:17 (GMT) |
commit | 0340d4e0a1e3e8a74fdc13d04079d384f7906247 (patch) | |
tree | 98e899b2eca4b390cfbd80aab651e27841968109 /tests/OffscreenView.h | |
parent | 38f50db0e061353b8ef7055a39357fcf6442d199 (diff) |
Improved view distance
Diffstat (limited to 'tests/OffscreenView.h')
-rw-r--r-- | tests/OffscreenView.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/OffscreenView.h b/tests/OffscreenView.h index 453d4d0..d71ea2f 100644 --- a/tests/OffscreenView.h +++ b/tests/OffscreenView.h @@ -11,10 +11,12 @@ public: ~OffscreenView(); void setRenderer(class Renderer* r); + void setCamera(double xpos, double ypos, double zpos, + double xcenter, double ycenter, double zcenter); void initializeGL(); void resizeGL(int w, int h); void setupPerspective(); - void setupOrtho(double distance,bool offset=false); + void setupOrtho(bool offset=false); void paintGL(); bool save(const char *filename); @@ -26,12 +28,17 @@ private: double object_rot_x; double object_rot_y; double object_rot_z; + double camera_eye_x; + double camera_eye_y; + double camera_eye_z; + double camera_center_x; + double camera_center_y; + double camera_center_z; bool orthomode; bool showaxes; bool showfaces; bool showedges; - float viewer_distance; }; #endif |