30 namespace cinder {
namespace gl {
38 #if defined( CINDER_GLES )
75 int mSamples, mCoverageSamples;
78 std::shared_ptr<Obj> mObj;
135 #if ! defined( CINDER_GLES )
235 Obj(
int aWidth,
int aHeight );
271 virtual const char *
what()
const throw() {
return mMessage; }
Obj()
Definition: Fbo.cpp:103
std::vector< Texture > mColorTextures
Definition: Fbo.h:244
int getHeight() const
Returns the height of the Renderbuffer in pixels.
Definition: Fbo.h:49
GLuint getId() const
Returns the ID of the Renderbuffer.
Definition: Fbo.h:58
void reset()
Emulates shared_ptr-like behavior.
Definition: Fbo.h:259
int mWidth
Definition: Fbo.h:238
void bindFramebuffer()
Binds the Fbo as the currently active framebuffer, meaning it will receive the results of all subsequ...
Definition: Fbo.cpp:415
GLsizei const GLchar ** string
Definition: GLee.h:2427
void unbindTexture()
Unbinds the texture associated with an Fbo's target.
Definition: Fbo.cpp:354
Renderbuffer()
Creates a NULL Renderbuffer.
Definition: Fbo.h:36
GLuint mResolveFramebufferId
Definition: Fbo.h:241
GLenum internalFormat
Definition: GLee.h:7149
void updateMipmaps(bool bindFirst, int attachment) const
Definition: Fbo.cpp:398
Vec2i getSize() const
Returns the size of the Renderbuffer in pixels.
Definition: Fbo.h:51
GLenum GLsizei width
Definition: GLee.h:969
static GLint sMaxAttachments
Definition: Fbo.h:252
static GLint sMaxSamples
Definition: Fbo.h:252
void bindTexture(int textureUnit=0, int attachment=0)
Binds the color texture associated with an Fbo to its target. Optionally binds to a multitexturing un...
Definition: Fbo.cpp:347
GLenum target
Definition: GLee.h:13607
#define GL_NEAREST
Definition: gldx.h:933
GLuint getId() const
Returns the ID of the framebuffer itself. For antialiased FBOs this is the ID of the output multisamp...
Definition: Fbo.h:133
Renderbuffer mDepthRenderbuffer
Definition: Fbo.h:246
bool mNeedsMipmapUpdate
Definition: Fbo.h:247
std::shared_ptr< Obj > Renderbuffer::* unspecified_bool_type
Emulates shared_ptr-like behavior.
Definition: Fbo.h:83
void reset()
Emulates shared_ptr-like behavior.
Definition: Fbo.h:85
GLsizei coverageSamples
Definition: GLee.h:13032
#define GL_COLOR_BUFFER_BIT
Definition: gldx.h:99
void blitToScreen(const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT) const
Copies to the screen from Area srcArea to dstArea using filter filter. mask allows specification of c...
Definition: Fbo.cpp:509
Texture mDepthTexture
Definition: Fbo.h:245
Area getBounds() const
Returns the bounding area of the Renderbuffer in pixels.
Definition: Fbo.h:53
unsigned int GLuint
Definition: gldx.h:55
std::vector< Renderbuffer > mMultisampleColorRenderbuffers
Definition: Fbo.h:242
int getCoverageSamples() const
Returns the number of coverage samples used in CSAA-style antialiasing. Defaults to none...
Definition: Fbo.h:64
Represents an OpenGL Texture. Implicitly shared object.
Definition: Texture.h:41
Area getBounds() const
Returns the bounding area of the FBO in pixels.
Definition: Fbo.h:108
bool initMultisample(bool csaa)
Definition: Fbo.cpp:261
int getWidth() const
Returns the width of the Renderbuffer in pixels.
Definition: Fbo.h:47
GLenum GLsizei GLsizei height
Definition: GLee.h:1029
GLclampf GLclampf GLclampf alpha
Definition: GLee.h:951
void bindDepthTexture(int textureUnit=0)
Binds the depth texture associated with an Fbo to its target.
Definition: Fbo.cpp:359
~Obj()
Definition: Fbo.cpp:116
Fbo()
Creates a NULL FBO.
Definition: Fbo.h:95
Texture & getDepthTexture()
Returns a reference to the depth texture of the FBO.
Definition: Fbo.cpp:342
static void unbindFramebuffer()
Unbinds the Fbo as the currently active framebuffer, restoring the primary context as the target for ...
Definition: Fbo.cpp:426
static GLint getMaxAttachments()
Returns the maximum number of color attachments the graphics card is capable of using for an Fbo...
Definition: Fbo.cpp:486
FboExceptionInvalidSpecification()
Definition: Fbo.h:268
int getHeight() const
Returns the height of the FBO in pixels.
Definition: Fbo.h:104
Represents an OpenGL Renderbuffer, used primarily in conjunction with FBOs. Supported on OpenGL ES bu...
Definition: Fbo.h:33
void init()
Definition: Fbo.cpp:174
void blitFromScreen(const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT)
Copies from the screen from Area srcArea to dstArea using filter filter. mask allows specification of...
Definition: Fbo.cpp:518
GLuint mId
Definition: Fbo.h:240
virtual const char * what() const
Definition: Fbo.h:271
GLsizei samples
Definition: GLee.h:5425
Texture & getTexture(int attachment=0)
Returns a reference to the color texture of the FBO. attachment specifies which attachment in the cas...
Definition: Fbo.cpp:335
int getSamples() const
Returns the number of samples used in MSAA-style antialiasing. Defaults to none, disabling multisampl...
Definition: Fbo.h:62
#define GL_RGBA8
Definition: gldx.h:1010
bool checkStatus(class FboExceptionInvalidSpecification *resultExc)
Definition: Fbo.cpp:431
Format mFormat
Definition: Fbo.h:239
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: GLee.h:5419
int mHeight
Definition: Fbo.h:238
GLenum getInternalFormat() const
Returns the internal format of the Renderbuffer.
Definition: Fbo.h:60
int GLint
Definition: gldx.h:51
GLenum GLsizei GLenum format
Definition: GLee.h:969
float getAspectRatio() const
Returns the aspect ratio of the FBO.
Definition: Fbo.h:110
GLuint dst
Definition: GLee.h:10536
int getWidth() const
Returns the width of the FBO in pixels.
Definition: Fbo.h:102
Vec2i getSize() const
Returns the size of the FBO in pixels.
Definition: Fbo.h:106
Represents an OpenGL Framebuffer Object. //! Represents an instance of a font at a point size...
Definition: Fbo.h:90
bool mNeedsResolve
Definition: Fbo.h:247
unsigned int GLbitfield
Definition: gldx.h:48
GLenum getTarget() const
Returns the texture target for this FBO. Typically GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
Definition: Fbo.h:114
GLuint getResolveId() const
For antialiased FBOs this returns the ID of the mirror FBO designed for reading, where the multisampl...
Definition: Fbo.h:137
GLenum attachment
Definition: GLee.h:5383
const Format & getFormat() const
Returns the Fbo::Format of this FBO.
Definition: Fbo.h:112
static GLint getMaxSamples()
Returns the maximum number of samples the graphics card is capable of using per pixel in MSAA for an ...
Definition: Fbo.cpp:469
GLint GLint GLsizei GLsizei GLsizei depth
Definition: GLee.h:1161
std::shared_ptr< Obj > mObj
Definition: Fbo.h:250
void resolveTextures() const
Definition: Fbo.cpp:364
GLenum GLint GLuint mask
Definition: GLee.h:2241
Renderbuffer mMultisampleDepthRenderbuffer
Definition: Fbo.h:243
unsigned int GLenum
Definition: gldx.h:46
void blitTo(Fbo dst, const Area &srcArea, const Area &dstArea, GLenum filter=GL_NEAREST, GLbitfield mask=GL_COLOR_BUFFER_BIT) const
Copies to FBO dst from srcArea to dstArea using filter filter. mask allows specification of color (GL...
Definition: Fbo.cpp:500
std::shared_ptr< Obj > Fbo::* unspecified_bool_type
Emulates shared_ptr-like behavior.
Definition: Fbo.h:257
float getAspectRatio() const
Returns the aspect ratio of the Renderbuffer.
Definition: Fbo.h:55
Vec2< int > Vec2i
Definition: Vector.h:1313
GLuint color
Definition: GLee.h:3198