1 #ifndef _FRAMEBUFFER_H_
2 #define _FRAMEBUFFER_H_
4 #include "include_opengl.h"
16 int depthFormat, depthInternalFormat;
17 int numColorAttachments;
19 int* colorInternalFormat;
23 GLint depthMinFilter, depthMagFilter;
26 GLint colorMinFilter, colorMagFilter;
50 bool init(
int width,
int height,
int depthFormat,
int depthInternalFormat,
51 int numColorAttachments,
int* colorFormat,
int* colorInternalFormat);
53 bool init(
int width,
int height,
int depthFormat,
int depthInternalFormat,
54 int colorFormat,
int colorInternalFormat);
83 int getHeight()
const;
86 GLuint _framebufferHandle;
88 int _depthFormat, _depthInternalFormat;
89 GLuint _depthTextureHandle;
91 int _numColorAttachments;
92 int *_colorFormat, *_colorInternalFormat;
93 GLuint *_colorTextureHandle;
94 GLenum* _colorAttachments;