summaryrefslogtreecommitdiff
path: root/tests/OffscreenView.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-05 00:17:26 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-05 00:17:26 (GMT)
commit38f50db0e061353b8ef7055a39357fcf6442d199 (patch)
tree29bbe81aa678dc5d71946122b4733ee4733757e2 /tests/OffscreenView.cc
parent80e526880a0b44361fe6793ac740a19e65df44b2 (diff)
Initially show object at an angle
Diffstat (limited to 'tests/OffscreenView.cc')
-rw-r--r--tests/OffscreenView.cc9
1 files changed, 5 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
contact: Jan Huwald // Impressum