| 222 | ChannelManagerForBatches* channelMgr; |
| 223 | |
| 224 | void touchFragments(const Batch& batch) { |
| 225 | glMatrixMode(GL_PROJECTION); |
| 226 | glPushMatrix(); |
| 227 | glLoadIdentity(); |
| 228 | glMatrixMode(GL_MODELVIEW); |
| 229 | glPushMatrix(); |
| 230 | glLoadIdentity(); |
| 231 | |
| 232 | GLboolean origVertexArrayState = glIsEnabled(GL_VERTEX_ARRAY); |
| 233 | if (!origVertexArrayState) { |
| 234 | glEnableClientState(GL_VERTEX_ARRAY); |
| 235 | } |
| 236 | |
| 237 | for (Batch::const_iterator j = batch.begin(); j != batch.end(); ++j) { |
| 238 | |
| 239 | float fminx, fminy, fminz, fmaxx, fmaxy, fmaxz; |
| 240 | (*j)->getBoundingBox(fminx, fminy, fminz, fmaxx, fmaxy, fmaxz); |
| 241 | |
| 242 | const GLfloat v[8] = { |
| 243 | fminx, fminy, |
| 244 | fmaxx, fminy, |
| 245 | fminx, fmaxy, |
| 246 | fmaxx, fmaxy |
| 247 | }; |
| 248 | |
| 249 | glVertexPointer(2, GL_FLOAT, 0, v); |
| 250 | glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); |
| 251 | } |
| 252 | |
| 253 | if (!origVertexArrayState) { |
| 254 | glDisableClientState(GL_VERTEX_ARRAY); |
| 255 | } |
| 256 | |
| 257 | glMatrixMode(GL_PROJECTION); |
| 258 | glPopMatrix(); |
| 259 | glMatrixMode(GL_MODELVIEW); |
| 260 | glPopMatrix(); |
| 261 | } |
| 262 | |
| 263 | GLenum getParityDepthFunc() |
| 264 | { |
no test coverage detected