Lines Matching refs:fbo

140 						Framebuffer				(sglr::Context& context, const FboConfig& config, int width, int height, deUint32 fbo = 0, deUint32 colorBuffer = 0, deUint32 depthStencilBuffer = 0);
251 Framebuffer::Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, deUint32 fbo, deUint32 colorBufferName, deUint32 depthStencilBufferName)
254 , m_framebuffer (fbo)
555 Framebuffer fbo(context, m_config, width, height);
556 fbo.checkCompleteness();
559 context.bindFramebuffer(GL_FRAMEBUFFER, fbo.getFramebuffer());
591 if (fbo.getConfig().colorType == GL_TEXTURE_2D)
594 context.bindTexture(GL_TEXTURE_2D, fbo.getColorBuffer());
652 // Attach color buffer from fbo A
668 // Clear depth and stencil in fbo B
671 // Render quads to fbo 1, with depth 0.0
679 // Stencil to 1 in fbo A
690 // Blend metaballs to fbo 2
697 // Render small quad that is only visible if depth buffer is not shared with fbo A - or there is no depth bits
777 for (int fbo = 1; fbo <= 3; fbo++)
779 context.bindFramebuffer(GL_FRAMEBUFFER, fbo);
889 // Bind depth/stencil buffers from fbo A to fbo B
911 // Clear color to red and stencil to 1 in fbo B.
918 // Render quad to fbo A
925 // Clear subset of stencil buffer to 0 in fbo A
933 // Render metaballs to fbo B
965 // Read results from fbo B
1010 // Render to fbo
1074 // Render to fbo
1083 // Render again to fbo
1142 Framebuffer fbo(context, m_config, initialWidth, initialHeight);
1143 fbo.checkCompleteness();
1151 context.bindFramebuffer(GL_FRAMEBUFFER, fbo.getFramebuffer());
1158 if (fbo.getConfig().colorType == GL_TEXTURE_2D)
1160 // Render fbo to screen
1163 context.bindTexture(GL_TEXTURE_2D, fbo.getColorBuffer());
1167 context.bindFramebuffer(GL_FRAMEBUFFER, fbo.getFramebuffer());
1171 switch (fbo.getConfig().colorType)
1174 context.bindTexture(GL_TEXTURE_2D, fbo.getColorBuffer());
1175 context.texImage2D(GL_TEXTURE_2D, 0, fbo.getConfig().colorFormat, newWidth, newHeight);
1179 context.bindRenderbuffer(GL_RENDERBUFFER, fbo.getColorBuffer());
1180 context.renderbufferStorage(GL_RENDERBUFFER, fbo.getConfig().colorFormat, newWidth, newHeight);
1189 switch (fbo.getConfig().depthStencilType)
1192 context.bindTexture(GL_TEXTURE_2D, fbo.getDepthStencilBuffer());
1193 context.texImage2D(GL_TEXTURE_2D, 0, fbo.getConfig().depthStencilFormat, newWidth, newHeight);
1197 context.bindRenderbuffer(GL_RENDERBUFFER, fbo.getDepthStencilBuffer());
1198 context.renderbufferStorage(GL_RENDERBUFFER, fbo.getConfig().depthStencilFormat, newWidth, newHeight);
1206 // Render to resized fbo
1239 context.bindTexture(GL_TEXTURE_2D, fbo.getColorBuffer());
1292 Framebuffer fbo(ctx, m_config, width, height);
1293 fbo.checkCompleteness();
1303 ctx.bindFramebuffer(GL_FRAMEBUFFER, fbo.getFramebuffer());
1336 deUint32 type = ndx == 0 ? fbo.getConfig().colorType
1337 : fbo.getConfig().depthStencilType;
1338 deUint32 format = ndx == 0 ? fbo.getConfig().colorFormat
1339 : fbo.getConfig().depthStencilFormat;
1340 deUint32 buf = ndx == 0 ? fbo.getColorBuffer()
1341 : fbo.getDepthStencilBuffer();
1378 deUint32 type = ndx == 0 ? fbo.getConfig().colorType
1379 : fbo.getConfig().depthStencilType;
1380 deUint32 buf = ndx == 0 ? fbo.getColorBuffer()
1381 : fbo.getDepthStencilBuffer();
1403 ctx.bindFramebuffer(GL_FRAMEBUFFER, fbo.getFramebuffer());
1428 if (fbo.getConfig().colorType == GL_TEXTURE_2D)
1430 // Unbind fbo
1434 ctx.bindTexture(GL_TEXTURE_2D, fbo.getColorBuffer());
1443 // Read from fbo