Changeset 1950 for GTP


Ignore:
Timestamp:
01/07/07 16:05:10 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
1 added
1 edited
1 moved

Legend:

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

    r1949 r1950  
    2323GlobalLinesRenderer *globalLinesRenderer = NULL; 
    2424 
     25static int texWidth = 256; 
     26static int texHeight = 256; 
    2527 
    2628static void cgErrorCallback() 
     
    216218        glEnable(GL_DEPTH_TEST);  
    217219        glClearColor(0.1, 0.2, 0.3, 1); 
    218  
    219     int texWidth = 256, texHeight = 256; 
    220220         
    221221        // A square, mipmapped, anisotropically filtered 8-bit RGBA texture with 
     
    350350         
    351351        //mNewBuffer->BindDepth(); 
    352         //float data[262144]; 
    353         //glGetTexImage(mNewBuffer->GetTextureTarget(), 0, mNewBuffer->texture_format, GL_FLOAT, data); 
     352        float *data = new float[texWidth * texHeight]; 
     353        //const int texFormat = WGL_TEXTURE_DEPTH_COMPONENT_NV; 
     354        const int texFormat = GL_LUMINANCE; 
     355        glGetTexImage(mNewBuffer->GetTextureTarget(), 0, texFormat, GL_FLOAT, data); 
     356         
     357        delete [] data; 
     358 
     359        PrintGLerror("get data"); 
     360 
    354361        if (mNewBuffer->IsRectangleTexture()) cout << "rect" << endl; 
    355362//else cout << "haga"<<endl; 
Note: See TracChangeset for help on using the changeset viewer.