25 #ifndef __FramebufferSetupPool_hh__
26 #define __FramebufferSetupPool_hh__
28 #include <OpenGLFramework/Utils/FramebufferSetup.hh>
29 #include <OpenGLFramework/Utils/Texture2DPool.hh>
30 #include <OpenGLFramework/Base/glfFramebufferObject.hh>
32 #include <bias_config.h>
62 CreateSetup(
const std::string& setupName);
78 CreateSetup(
const std::string& setupName,
unsigned int width,
79 unsigned int height,
const std::string& colorAttachmentName,
80 GLenum internalFormat,
const bool clearColors =
true,
81 const std::string& depthAttachmentName =
"",
const bool clearDepth =
82 true,
const float rClear = 0.f,
const float gClear = 0.f,
83 const float bClear = 0.f,
const float aClear = 0.f,
const float zClear =
87 CreateSetup(
const std::string& setupName,
unsigned int width,
89 const std::vector<std::string>& colorAttachmentNames,
90 GLenum internalFormat,
const bool clearColors =
true,
91 const std::string& depthAttachmentName =
"",
const bool clearDepth =
92 true,
const float rClear = 0.f,
const float gClear = 0.f,
93 const float bClear = 0.f,
const float aClear = 0.f,
const float zClear =
97 SetColorAttachments(
const std::string& setupName,
const std::vector<
98 std::string>& colorAttachmentNames);
105 ClearSetup(
const std::string& setupName);
108 Activate(
const std::string& setupName);
121 GetAttachment(
const std::string& setupName,
122 const std::string& attachmentName);
125 GetSetup(
const std::string& setupName);
133 void GetSetupAttachmentNames(
const std::string& setupName, std::vector<std::string>& attachmentNames);
139 std::string>& colorAttachmentNames);
144 FramebufferSetupPool&
145 operator=(
const FramebufferSetupPool&)
150 glfFramebufferObject fbo_;
152 std::map<std::string,
153 std::pair<FramebufferSetup*, std::vector<std::string> > > fboSetupPool_;
155 Texture2DPool* texturePoolP_;
Convenience container for managing 2D textures.
Class containing a framebuffer and a map of setups.