Showing the changes to interface/src/main.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1081,6 +1081,15 @@ void display(void) · 1080 unmodified lines | ||
| 1081 | 1081 | |
| 1082 | 1082 | // important... |
| 1083 | 1083 | myCamera.update( 1.f/FPS ); |
| 1084 | + | |
| 1085 | + // Render anything (like HUD items) that we want to be in 3D but not in worldspace | |
| 1086 | + const float HUD_Z_OFFSET = -5.f; | |
| 1087 | + glPushMatrix(); | |
| 1088 | + glm::vec3 test(0.5, 0.5, 0.5); | |
| 1089 | + glTranslatef(1, 1, HUD_Z_OFFSET); | |
| 1090 | + drawVector(&test); | |
| 1091 | + glPopMatrix(); | |
| 1092 | + | |
| 1084 | 1093 | |
| 1085 | 1094 | // Note: whichCamera is used to pick between the normal camera myCamera for our |
| 1086 | 1095 | // main camera, vs, an alternate camera. The alternate camera we support right now |