10 typedef boost::shared_ptr<FBO> FBOPtr;
28 FBO(
int width,
int height,
bool bingbong=
false,
unsigned int internal_format=GL_RGBA32F,
unsigned int format=GL_RGBA,
unsigned int interpolation_min=GL_LINEAR,
unsigned int interpolation_max=GL_LINEAR,
int type=0,
unsigned int num_texture = 1,
bool helper =
false);
39 FBO(
int width,
int height,
int depth,
bool bingbong=
false,
unsigned int internal_format=GL_RGBA32F,
unsigned int format=GL_RGBA,
unsigned int interpolation_min=GL_LINEAR,
unsigned int interpolation_max=GL_LINEAR,
int type=0);
50 if(FBOstatus == GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) printf(
"Incomplete attachment\n");
51 if(FBOstatus == GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT) printf(
"Missing attachment\n");
52 if(FBOstatus == GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT) printf(
"Incomplete dimensions\n");
53 if(FBOstatus == GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER) printf(
"Incomplete read buffer\n");
54 if(FBOstatus == GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER) printf(
"GL_FRAMEBUFFER_COMPLETE für Blur Effekt konnte ned benutzt werden\n");
55 if(FBOstatus == GL_FRAMEBUFFER_UNSUPPORTED) printf(
"Framebufferobjects unsupported\n");
59 void CreateFBO(GLuint& depth, GLuint& texn, GLuint& fbo);
60 void Create3DFBO(GLuint& texn, GLuint& fbo);
110 std::vector<GLenum> buffers;
115 unsigned int m_format;
116 unsigned int m_internal_format;
117 unsigned int m_interpolation_min;
118 unsigned int m_interpolation_max;
122 unsigned int m_num_texture;
123 std::vector<Texture::TexturePtr> multi_outputs;