- Timestamp:
- 07/13/08 23:51:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp
r2809 r2834 149 149 { 150 150 glViewport(0, 0, texWidth, texHeight); 151 glPushAttrib(GL_VIEWPORT_BIT); 151 152 152 153 glClearColor(1, 1, 1, 1); … … 162 163 163 164 glMatrixMode(GL_PROJECTION); 164 gl LoadIdentity();165 glPushMatrix(); 165 166 166 167 glOrtho(-xlen, xlen, -ylen, ylen, 0.0f, mSceneBox.Size().z); 167 168 168 169 glMatrixMode(GL_MODELVIEW); 170 glPushMatrix(); 169 171 170 172 orthoCam->SetupCameraView(); … … 174 176 //renderer->SetCamera(orthoCam); 175 177 renderer->RenderScene(); 178 179 glPopMatrix(); 180 glPopMatrix(); 181 182 glPopAttrib(); 176 183 } 177 184 depthTexture->EndCapture();
Note: See TracChangeset
for help on using the changeset viewer.