| 383 | } |
| 384 | |
| 385 | Frame *downloadToNewFrame() |
| 386 | { |
| 387 | Frame *f = new Frame(width, height, bytes_per_pixel); |
| 388 | f->format = Frame::Float; |
| 389 | downloadToBuffer(f->data); |
| 390 | flipYBuffer(f->data); |
| 391 | |
| 392 | return f; |
| 393 | } |
| 394 | }; |
| 395 | |
| 396 | class OpenGLDepthPacketProcessorImpl : public WithOpenGLBindings, public WithPerfLogging |