Changeset 5719 for nanovis/trunk/OrientationIndicator.cpp
- Timestamp:
- Jun 17, 2015, 1:41:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/trunk/OrientationIndicator.cpp
r3630 r5719 6 6 */ 7 7 8 #define USE_GLUT 9 8 10 #include <GL/glew.h> 9 11 #include <GL/gl.h> 10 12 #include <GL/glu.h> 13 #ifdef USE_GLUT 14 #include <GL/glut.h> 15 #endif 11 16 12 17 #include <vrmath/Vector3f.h> … … 106 111 gluCylinder(qobj, 0.02, 0.0, 0.06, segments, 1); 107 112 glPopMatrix(); 113 114 #ifdef USE_GLUT 115 glDisable(GL_LIGHTING); 116 glPushMatrix(); 117 glTranslatef(0.4, 0., 0.); 118 glRotatef(90, 1, 0, 0); 119 glRotatef(180, 0, 1, 0); 120 glScalef(0.0005, 0.0005, 0.0005); 121 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'x'); 122 glPopMatrix(); 123 glEnable(GL_LIGHTING); 124 #endif 108 125 } 109 126 … … 121 138 gluCylinder(qobj, 0.02, 0.0, 0.06, segments, 1); 122 139 glPopMatrix(); 140 141 #ifdef USE_GLUT 142 glDisable(GL_LIGHTING); 143 glPushMatrix(); 144 glTranslatef(0., 0.4, 0.); 145 glRotatef(90, 1, 0, 0); 146 glRotatef(180, 0, 1, 0); 147 glScalef(0.0005, 0.0005, 0.0005); 148 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'y'); 149 glPopMatrix(); 150 glEnable(GL_LIGHTING); 151 #endif 123 152 } 124 153 … … 134 163 gluCylinder(qobj, 0.02, 0.0, 0.06, segments, 1); 135 164 glPopMatrix(); 165 166 #ifdef USE_GLUT 167 glDisable(GL_LIGHTING); 168 glPushMatrix(); 169 glTranslatef(0., 0., 0.4); 170 glRotatef(90, 1, 0, 0); 171 glRotatef(180, 0, 1, 0); 172 glScalef(0.0005, 0.0005, 0.0005); 173 glutStrokeCharacter(GLUT_STROKE_ROMAN, 'z'); 174 glPopMatrix(); 175 glEnable(GL_LIGHTING); 176 #endif 136 177 } 137 178 }
Note: See TracChangeset
for help on using the changeset viewer.