MCPcopy Create free account
hub / github.com/cginternals/globjects / readPixelsToBuffer

Method readPixelsToBuffer

source/globjects/source/Framebuffer.cpp:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void 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
310void 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{

Callers

nothing calls this directly

Calls 2

bindMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected