| 299 | } |
| 300 | |
| 301 | void Framebuffer::readPixelsToBuffer(const std::array<GLint, 4> & rect, GLenum format, GLenum type, Buffer * pbo) const |
| 302 | { |
| 303 | assert(pbo != nullptr); |
| 304 | |
| 305 | pbo->bind(GL_PIXEL_PACK_BUFFER); |
| 306 | readPixels(rect, format, type, nullptr); |
| 307 | pbo->unbind(GL_PIXEL_PACK_BUFFER); |
| 308 | } |
| 309 | |
| 310 | void Framebuffer::blit(GLenum readBuffer, const std::array<GLint, 4> & srcRect, Framebuffer * destFbo, GLenum drawBuffer, const std::array<GLint, 4> & destRect, ClearBufferMask mask, GLenum filter) const |
| 311 | { |