Changeset 1954


Ignore:
Timestamp:
01/08/07 02:23:18 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp

    r1953 r1954  
    241241        glLoadIdentity(); 
    242242 
     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         
    243250        AxisAlignedBox3 bbox = globalLinesRenderer->mPreprocessor->mKdTree->GetBox(); 
    244251         
     
    437444 
    438445 
    439 void GlobalLinesRenderer::GrabItemBuffer(float *data, RenderTexture *rt) 
     446void GlobalLinesRenderer::GrabItemBuffer(int *data, RenderTexture *rt) 
    440447{ 
    441448        rt->BindDepth(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.h

    r1953 r1954  
    5050void Run(); 
    5151void GrabDepthBuffer(float *data, RenderTexture *rt); 
    52 void GrabItemBuffer(float *data, RenderTexture *rt); 
     52void GrabItemBuffer(int *data, RenderTexture *rt); 
    5353void ApplyDepthPeeling(Beam &beam, const int samples); 
    5454void ExportDepthBuffer(); 
     
    6464        float *mNewDepthBuffer; 
    6565        float *mOldDepthBuffer; 
    66         float *mNewItemBuffer; 
    67         float *mOldItemBuffer; 
     66        int *mNewItemBuffer; 
     67        int *mOldItemBuffer; 
    6868RenderTexture *mNewTexture; 
    6969        RenderTexture *mOldTexture; 
Note: See TracChangeset for help on using the changeset viewer.