Changeset 2008 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 01/21/07 23:05:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2002 r2008 120 120 121 121 SetupCamera(); 122 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );122 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 123 123 glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_FALSE); 124 124 125 126 glStencilFunc(GL_EQUAL, 0x0, 0x1); 127 glStencilOp(GL_KEEP, GL_KEEP, GL_INCR); 125 128 126 129 // // Render PVS … … 137 140 // glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); 138 141 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 142 glEnable(GL_STENCIL_TEST); 139 143 140 144 mUseFalseColors = true; … … 142 146 OcclusionQuery *query = mOcclusionQueries[0]; 143 147 148 144 149 query->BeginQuery(); 145 150 … … 149 154 150 155 query->EndQuery(); 151 156 glDisable(GL_STENCIL_TEST); 152 157 // reenable other state 153 158 // int wait=0;
Note: See TracChangeset
for help on using the changeset viewer.