- Timestamp:
- 02/25/09 15:51:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp
r3219 r3327 105 105 106 106 SceneQuery::SceneQuery(const AxisAlignedBox3 &sceneBox, 107 RenderTraverser *renderer, RenderState *state): 108 mSceneBox(sceneBox), mDepth(NULL), mRenderState(state) 107 RenderTraverser *renderer, 108 RenderState *state): 109 mSceneBox(sceneBox), 110 mDepth(NULL), 111 mRenderState(state) 109 112 { 110 113 Prepare(renderer); … … 118 121 119 122 const float d = mDepth[px + py * texHeight]; 120 121 123 static float depth = d; 122 124 … … 147 149 148 150 FrameBufferObject *fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_32, true); 151 149 152 fbo->AddColorBuffer(ColorBufferObject::RGBA_UBYTE, 150 153 ColorBufferObject::WRAP_CLAMP_TO_EDGE, … … 177 180 orthoCam->SetupViewProjection(); 178 181 179 //glOrtho(xlen, -xlen, ylen, -ylen, 0.0f, mSceneBox.Size().z);180 182 glMatrixMode(GL_MODELVIEW); 181 //orthoCam->SetupCameraView();182 183 183 184 mDepth = new float[texHeight * texWidth];
Note: See TracChangeset
for help on using the changeset viewer.