Basic Image AlgorithmS Library
2.8.0
|
#include <OpenGLFramework/Utils/FramebufferSetup.hh>
Public Member Functions | |
void | ClearColorAttachments () |
void | DisableColorClearance () |
void | DisableDepthClearance () |
void | EnableColorClearance (float red=0.0f, float green=0.0f, float blue=0.0f, float alpha=0.0f) |
void | EnableDepthClearance (float depth=1.0f) |
void | Execute () |
FramebufferSetup () | |
glfTexture2D * | GetColorAttachment2D (int AttachmentPoint) |
Returns texture attached to AttachmentPoint if it is a glfTexture2D otherwise NULL. More... | |
void | LinkFBO (BIAS::glfFramebufferObject *fbo) |
void | SetColorAttachment (BIAS::glfTexture *texture, int AttachmentPoint=0) |
void | SetColorAttachments (const std::vector< BIAS::glfTexture * > &textures) |
replaces all previous color attachments and through given More... | |
void | SetDepthAttachment (BIAS::glfTexture *texture) |
Definition at line 45 of file FramebufferSetup.hh.
FramebufferSetup::FramebufferSetup | ( | ) |
Definition at line 31 of file FramebufferSetup.cpp.
void FramebufferSetup::ClearColorAttachments | ( | ) |
Definition at line 59 of file FramebufferSetup.cpp.
Referenced by BIAS::SimpleMultiPassFragmentShader::SetOutputTexture().
void FramebufferSetup::DisableColorClearance | ( | ) |
Definition at line 111 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), and BIAS::SimpleMultiPassFragmentShader::DisableColorClearance().
void FramebufferSetup::DisableDepthClearance | ( | ) |
Definition at line 117 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), and BIAS::SimpleMultiPassFragmentShader::DisableDepthClearance().
void FramebufferSetup::EnableColorClearance | ( | float | red = 0.0f , |
float | green = 0.0f , |
||
float | blue = 0.0f , |
||
float | alpha = 0.0f |
||
) |
Definition at line 93 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), and BIAS::SimpleMultiPassFragmentShader::EnableColorClearance().
void FramebufferSetup::EnableDepthClearance | ( | float | depth = 1.0f | ) |
Definition at line 104 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), and BIAS::SimpleMultiPassFragmentShader::EnableDepthClearance().
void FramebufferSetup::Execute | ( | ) |
Definition at line 123 of file FramebufferSetup.cpp.
References BIAS::glfFramebufferObject::AttachTexture(), BIAS::glfFramebufferObject::CheckComplete(), BIAS::glfRenderTarget::ClearColorBuffer(), BIAS::glfRenderTarget::ClearDepthBuffer(), BIAS::glfFramebufferObject::MaxRenderTargets(), BIAS::glfFramebufferObject::ReleaseAttachment(), and BIAS::glfFramebufferObject::SetDrawBuffers().
Referenced by BIAS::SimpleMultiPassFragmentShader::SetOutputTexture(), and BIAS::SimpleMultiPassFragmentShader::SetOutputTextures().
glfTexture2D * FramebufferSetup::GetColorAttachment2D | ( | int | AttachmentPoint | ) |
Returns texture attached to AttachmentPoint if it is a glfTexture2D otherwise NULL.
Also returns NULL if not texture is attached to this attachmentpoint.
Definition at line 80 of file FramebufferSetup.cpp.
Referenced by BIAS::SimpleMultiPassFragmentShader::Execute().
void FramebufferSetup::LinkFBO | ( | BIAS::glfFramebufferObject * | fbo | ) |
Definition at line 40 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup().
void FramebufferSetup::SetColorAttachment | ( | BIAS::glfTexture * | texture, |
int | AttachmentPoint = 0 |
||
) |
Definition at line 47 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), and BIAS::SimpleMultiPassFragmentShader::SetOutputTexture().
void FramebufferSetup::SetColorAttachments | ( | const std::vector< BIAS::glfTexture * > & | textures | ) |
replaces all previous color attachments and through given
Definition at line 67 of file FramebufferSetup.cpp.
void FramebufferSetup::SetDepthAttachment | ( | BIAS::glfTexture * | texture | ) |
Definition at line 74 of file FramebufferSetup.cpp.
Referenced by BIAS::FramebufferSetupPool::CreateSetup(), BIAS::SimpleMultiPassFragmentShader::SetOutputTexture(), and BIAS::SimpleMultiPassFragmentShader::SetOutputTextures().