32 #ifndef BlitFramebuffer_INCLUDE_ONCE 33 #define BlitFramebuffer_INCLUDE_ONCE 51 VL_DEBUG_SET_OBJECT_NAME()
62 if (Has_GL_EXT_framebuffer_blit||Has_GL_ARB_framebuffer_object)
69 glGetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &read_fbo);
VL_CHECK_OGL()
70 glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &draw_fbo);
VL_CHECK_OGL()
92 VL_glBindFramebuffer( GL_READ_FRAMEBUFFER_EXT, read_fbo );
94 VL_glBindFramebuffer( GL_DRAW_FRAMEBUFFER_EXT, draw_fbo );
virtual bool onRenderingFinished(const RenderingAbstract *)
Reimplement to react to this event.
const Framebuffer * drawFramebuffer() const
The render-target used as destination during blitting.
void setReadFramebuffer(Framebuffer *fbo)
The render-target used as source during blitting.
virtual bool onRendererStarted(const RendererAbstract *)
Reimplement to react to this event.
The RenderingAbstract class is the base of all the rendering related sub-classes. ...
const int * dstRect() const
A RenderEventCallback that can be used to copy pixels from a framebuffer to another as described in G...
bool mLinearFilteringEnabled
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
bool linearFilteringEnabled() const
Visualization Library main namespace.
An abstract class used to react to rendering events.
EReadDrawBuffer mReadBuffer
Framebuffer * readFramebuffer()
The render-target used as source during blitting.
void setReadBuffer(EReadDrawBuffer read_buffer)
The read-buffer of the read-render-target used as pixel source during blitting.
void setDrawFramebuffer(Framebuffer *fbo)
The render-target used as destination during blitting.
Base class providing all the basic funtionalities of a Renderer.
void setLinearFilteringEnabled(bool enable_linear_filtering)
void activate(EFramebufferBind target=FBB_FRAMEBUFFER)
Activates the Framebuffer by calling bindFramebuffer() and bindDrawBuffers()
void setSrcRect(int x0, int y0, int x1, int y1)
const int * srcRect() const
const Framebuffer * readFramebuffer() const
The render-target used as source during blitting.
virtual bool onRendererFinished(const RendererAbstract *)
Reimplement to react to this event.
void setBufferMask(int buffer_mask)
takes a bitmask combination of EBufferBits
void copyPixels()
Performs the actual pixel copy from the read framebuffer to the draw framebuffer. ...
ref< Framebuffer > mReadFramebuffer
The ref<> class is used to reference-count an Object.
Framebuffer * drawFramebuffer()
The render-target used as destination during blitting.
void setDstRect(int x0, int y0, int x1, int y1)
virtual bool onRenderingStarted(const RenderingAbstract *)
Reimplement to react to this event.
EReadDrawBuffer readBuffer() const
The read-buffer of the read-render-target used as pixel source during blitting.
The Framebuffer class defines an abstract 'surface' where OpenGL can render into. ...
ref< Framebuffer > mDrawFramebuffer