Changeset 1954 for GTP/trunk/Lib
- Timestamp:
- 01/08/07 02:23:18 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1953 r1954 241 241 glLoadIdentity(); 242 242 243 // init the receiving buffers 244 mNewDepthBuffer = new float[texWidth * texHeight]; 245 mOldDepthBuffer = new float[texWidth * texHeight]; 246 247 mNewItemBuffer = new int[texWidth * texHeight *4]; 248 mOldItemBuffer = new int[texWidth * texHeight *4]; 249 243 250 AxisAlignedBox3 bbox = globalLinesRenderer->mPreprocessor->mKdTree->GetBox(); 244 251 … … 437 444 438 445 439 void GlobalLinesRenderer::GrabItemBuffer( float *data, RenderTexture *rt)446 void GlobalLinesRenderer::GrabItemBuffer(int *data, RenderTexture *rt) 440 447 { 441 448 rt->BindDepth(); -
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.h
r1953 r1954 50 50 void Run(); 51 51 void GrabDepthBuffer(float *data, RenderTexture *rt); 52 void GrabItemBuffer( float *data, RenderTexture *rt);52 void GrabItemBuffer(int *data, RenderTexture *rt); 53 53 void ApplyDepthPeeling(Beam &beam, const int samples); 54 54 void ExportDepthBuffer(); … … 64 64 float *mNewDepthBuffer; 65 65 float *mOldDepthBuffer; 66 float *mNewItemBuffer;67 float *mOldItemBuffer;66 int *mNewItemBuffer; 67 int *mOldItemBuffer; 68 68 RenderTexture *mNewTexture; 69 69 RenderTexture *mOldTexture;
Note: See TracChangeset
for help on using the changeset viewer.