Changeset 2709 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 05/26/08 01:05:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2706 r2709 447 447 448 448 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); 449 450 449 glEnable(GL_NORMALIZE); 451 452 450 glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 453 451 … … 916 914 { 917 915 char filename[256]; 918 sprintf (filename, "snap/frame-%04d-%d.png", mFrame, i);916 sprintf_s(filename, "snap/frame-%04d-%d.png", mFrame, i); 919 917 // QImage im = toImage(); 920 918 // im.save(filename, "PNG"); … … 923 921 // evaluate the sample 924 922 if (useOcclusionQueries) 925 {926 923 EvalQueryWithOcclusionQueries(); 927 }928 924 else 929 {930 925 EvalQueryWithItemBuffer(); 931 }932 926 } 933 927 … … 1452 1446 for (int i = 0; i < depthMapSize * depthMapSize; ++ i) 1453 1447 { 1454 // todo glGetTexImage()1448 // TODO (use glGetTexImage()) 1455 1449 } 1456 1450 } … … 1506 1500 int pvsSize; 1507 1501 1508 mPvsErrorBuffer[i].mError = GetPixelError(pvsSize );1502 mPvsErrorBuffer[i].mError = GetPixelError(pvsSize, 0); 1509 1503 mPvsErrorBuffer[i].mPvsSize = pvsSize; 1510 1504 … … 1566 1560 { 1567 1561 mPvsStat.Reset(); 1562 ++ mPvsStat.pass; 1568 1563 1569 1564 SetupProjection(GetWidth(), GetHeight()); … … 1591 1586 { 1592 1587 // compute the pixel error 1593 mPvsErrorBuffer[i].mError = GetPixelError(pvsSize );1588 mPvsErrorBuffer[i].mError = GetPixelError(pvsSize, mPvsStat.pass); 1594 1589 mPvsErrorBuffer[i].mPvsSize = pvsSize; 1595 1590 … … 1700 1695 1701 1696 1702 float GlRenderer::GetPixelError(int &pvsSize )1697 float GlRenderer::GetPixelError(int &pvsSize, int pass) 1703 1698 { 1704 1699 return -1.0f;
Note: See TracChangeset
for help on using the changeset viewer.