Lines Matching refs:fbo
191 void setupFbo (const Context& ctx, GLuint seed, GLuint fbo)
195 GLU_CHECK_CALL_ERROR(gl.bindFramebuffer(GL_FRAMEBUFFER, fbo),
232 void drawFbo (const Context& ctx, GLuint fbo, Surface& dst)
238 gl.bindFramebuffer(GL_FRAMEBUFFER, fbo),
250 GLuint getFboAttachment (const Functions& gl, GLuint fbo, GLenum requiredType)
253 gl.bindFramebuffer(GL_FRAMEBUFFER, fbo);
277 Framebuffer fbo(getRenderContext());
287 attach(element, *fbo);
288 setupFbo(getContext(), seed, *fbo);
289 detach(element, *fbo);
299 void FboInputAttacher::drawContainer (GLuint fbo, Surface& dst)
301 drawFbo(getContext(), fbo, dst);
303 << "// Read pixels from framebuffer " << fbo << " to output image."
307 void FboOutputAttacher::setupContainer (GLuint seed, GLuint fbo)
309 setupFbo(getContext(), seed, fbo);
311 << "// Drew to framebuffer " << fbo << " with seed " << seed << "."
317 Framebuffer fbo(getRenderContext());
319 m_attacher.attach(element, *fbo);
320 drawFbo(getContext(), *fbo, dst);
321 m_attacher.detach(element, *fbo);
330 void TextureFboAttacher::attach (GLuint texture, GLuint fbo)
333 glBindFramebuffer(GL_FRAMEBUFFER, fbo),
344 void TextureFboAttacher::detach (GLuint texture, GLuint fbo)
348 glBindFramebuffer(GL_FRAMEBUFFER, fbo),
358 GLuint TextureFboAttacher::getAttachment (GLuint fbo)
360 return getFboAttachment(gl(), fbo, GL_TEXTURE);
538 void RboFboAttacher::attach (GLuint rbo, GLuint fbo)
541 glBindFramebuffer(GL_FRAMEBUFFER, fbo),
551 void RboFboAttacher::detach (GLuint rbo, GLuint fbo)
555 glBindFramebuffer(GL_FRAMEBUFFER, fbo),
565 GLuint RboFboAttacher::getAttachment (GLuint fbo)
567 return getFboAttachment(gl(), fbo, GL_RENDERBUFFER);