This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofFbo.h
Go to the documentation of this file.
12};
111 OF_DEPRECATED_MSG("Use getTexture()",const ofTexture & getTextureReference(int attachmentPoint) const);
126 OF_DEPRECATED_MSG("Use begin(OF_FBOMODE_NODEFAULTS) instead", void begin(bool setupScreen) const);
205 void createAndAttachDepthStencilTexture(GLenum target, GLint internalformat, GLenum attachment );
206 void createAndAttachDepthStencilTexture(GLenum target, GLint internalformat, GLenum attachment, GLenum transferFormat, GLenum transferType );
Definition ofGraphicsBaseTypes.h:139
virtual void draw(float x, float y) const
Draw at a position at the native size.
Definition ofGraphicsBaseTypes.h:150
An abstract class representing an object that can have an ofTexture.
Definition ofGLBaseTypes.h:11
Definition ofBufferObject.h:8
Definition ofFbo.h:46
void updateTexture(int attachmentPoint)
Explicityl resolve MSAA render buffers into textures.
Definition ofFbo.cpp:1103
OF_DEPRECATED_MSG("Use getTexture()", const ofTexture &getTextureReference() const)
void unbind() const
Unbinds OpenGL framebuffer target and restores the OpenGL framebuffer render target to whatever this ...
Definition ofFbo.cpp:904
OF_DEPRECATED_MSG("Use getTexture()", const ofTexture &getTextureReference(int attachmentPoint) const)
void allocate(int width, int height, int internalformat=GL_RGBA, int numSamples=0)
Definition ofFbo.cpp:525
void attachTexture(ofTexture &texture, GLenum internalFormat, GLenum attachmentPoint)
Definition ofFbo.cpp:775
OF_DEPRECATED_MSG("Use getId()", GLuint getFbo() const)
void copyTo(ofBufferObject &buffer) const
Copy the fbo to an ofBufferObject.
Definition ofFbo.cpp:1092
void clearDepthStencilBuffer(float depth, int stencil)
Definition ofFbo.cpp:479
void readToPixels(ofPixels &pixels, int attachmentPoint=0) const
Definition ofFbo.cpp:1049
GLuint createAndAttachRenderbuffer(GLenum internalFormat, GLenum attachmentPoint)
Definition ofFbo.cpp:730
void setAnchorPercent(float xPct, float yPct)
Set the anchor point the item is drawn around as a percentage.
Definition ofFbo.cpp:1034
void setAnchorPoint(float x, float y)
Set the anchor point the item is drawn around in pixels.
Definition ofFbo.cpp:1039
ofFboSettings Settings
ofFbo::Settings is currently deprecated in favor of the ofFboSettings struct
Definition ofFbo.h:57
void draw(float x, float y) const
Draw at a position at the native size.
Definition ofFbo.cpp:1139
void createAndAttachDepthStencilTexture(GLenum target, GLint internalformat, GLenum attachment)
Definition ofFbo.cpp:820
void setDefaultTextureIndex(int defaultTexture)
Definition ofFbo.cpp:977
OF_DEPRECATED_MSG("Use begin(OF_FBOMODE_NODEFAULTS) instead", void begin(bool setupScreen) const)
void begin(ofFboMode mode=OF_FBOMODE_PERSPECTIVE|OF_FBOMODE_MATRIXFLIP) const
Definition ofFbo.cpp:835
void flagDirty() const
check whether attached MSAA buffers need updating
Definition ofFbo.cpp:912
void setUseTexture(bool)
Enable or disable internal ofTexture use.
Definition ofFbo.h:115
OF_DEPRECATED_MSG("Use clear() instead", void destroy())
void setActiveDrawBuffers(const std::vector< int > &i)
Definition ofFbo.cpp:944
OF_DEPRECATED_MSG("Use getTexture()", ofTexture &getTextureReference(int attachmentPoint))
void createAndAttachTexture(GLenum internalFormat, GLenum attachmentPoint)
Definition ofFbo.cpp:752
OF_DEPRECATED_MSG("Use getTexture()", ofTexture &getTextureReference())
void bind() const
Bind OpenGL GL_FRAMEBUFFER target to this ofFbo.
Definition ofFbo.cpp:896
GLuint getId() const
returns id of the underlying GL object for advanced actions
Definition ofFbo.cpp:1155
GLenum textureTarget
GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
Definition ofFbo.h:31
int numSamples
number of samples for multisampling (set 0 to disable)
Definition ofFbo.h:38
GLint internalformat
GL_RGBA, GL_RGBA16F_ARB, GL_RGBA32F_ARB, GL_LUMINANCE32F_ARB etc.
Definition ofFbo.h:32
int numColorbuffers
how many color buffers to create
Definition ofFbo.h:26
int wrapModeHorizontal
GL_REPEAT, GL_MIRRORED_REPEAT, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER etc.
Definition ofFbo.h:34
std::vector< GLint > colorFormats
format of the color attachments for MRT.
Definition ofFbo.h:27
GLint depthStencilInternalFormat
GL_DEPTH_COMPONENT(16/24/32)
Definition ofFbo.h:33
bool depthStencilAsTexture
use a texture instead of a renderbuffer for depth (useful to draw it or use it in a shader later)
Definition ofFbo.h:30
int wrapModeVertical
GL_REPEAT, GL_MIRRORED_REPEAT, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER etc.
Definition ofFbo.h:35