summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/OffscreenView.cc9
-rw-r--r--tests/OffscreenView.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/OffscreenView.cc b/tests/OffscreenView.cc
index 3740c69..95063b6 100644
--- a/tests/OffscreenView.cc
+++ b/tests/OffscreenView.cc
@@ -7,7 +7,8 @@
#define FAR_FAR_AWAY 100000.0
OffscreenView::OffscreenView(size_t width, size_t height)
- : orthomode(false), showaxes(true), showfaces(true), showedges(false), viewer_distance(500)
+ : orthomode(false), showaxes(true), showfaces(true), showedges(false), viewer_distance(500),
+ object_rot_x(35), object_rot_y(0), object_rot_z(25)
{
for (int i = 0; i < 10; i++) this->shaderinfo[i] = 0;
this->ctx = create_offscreen_context(width, height);
@@ -190,9 +191,9 @@ void OffscreenView::paintGL()
// glTranslated(object_trans_x, object_trans_y, object_trans_z);
- // glRotated(object_rot_x, 1.0, 0.0, 0.0);
- // glRotated(object_rot_y, 0.0, 1.0, 0.0);
- // glRotated(object_rot_z, 0.0, 0.0, 1.0);
+ glRotated(object_rot_x, 1.0, 0.0, 0.0);
+ glRotated(object_rot_y, 0.0, 1.0, 0.0);
+ glRotated(object_rot_z, 0.0, 0.0, 1.0);
// Large gray axis cross inline with the model
// FIXME: This is always gray - adjust color to keep contrast with background
diff --git a/tests/OffscreenView.h b/tests/OffscreenView.h
index 52ee3af..453d4d0 100644
--- a/tests/OffscreenView.h
+++ b/tests/OffscreenView.h
@@ -23,6 +23,9 @@ public:
private:
Renderer *renderer;
double w_h_ratio;
+ double object_rot_x;
+ double object_rot_y;
+ double object_rot_z;
bool orthomode;
bool showaxes;
contact: Jan Huwald // Impressum