- Timestamp:
- 01/07/07 16:05:10 (18 years ago)
- 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 23 23 GlobalLinesRenderer *globalLinesRenderer = NULL; 24 24 25 static int texWidth = 256; 26 static int texHeight = 256; 25 27 26 28 static void cgErrorCallback() … … 216 218 glEnable(GL_DEPTH_TEST); 217 219 glClearColor(0.1, 0.2, 0.3, 1); 218 219 int texWidth = 256, texHeight = 256;220 220 221 221 // A square, mipmapped, anisotropically filtered 8-bit RGBA texture with … … 350 350 351 351 //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 354 361 if (mNewBuffer->IsRectangleTexture()) cout << "rect" << endl; 355 362 //else cout << "haga"<<endl;
Note: See TracChangeset
for help on using the changeset viewer.