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.
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
ref< FramebufferObject > mDrawFramebuffer
ref< FramebufferObject > mReadFramebuffer
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
void setReadFramebuffer(FramebufferObject *fbo)
The render-target used as source during blitting.
bool linearFilteringEnabled() const
Visualization Library main namespace.
const FramebufferObject * readFramebuffer() const
The render-target used as source during blitting.
FramebufferObject * drawFramebuffer()
The render-target used as destination during blitting.
An abstract class used to react to rendering events.
EReadDrawBuffer mReadBuffer
void setReadBuffer(EReadDrawBuffer read_buffer)
The read-buffer of the read-render-target used as pixel source during blitting.
Base class providing all the basic funtionalities of a Renderer.
void activate(EFramebufferBind target=FBB_FRAMEBUFFER)
Activates the FramebufferObject by calling bindFramebuffer() and bindDrawBuffers() ...
void setLinearFilteringEnabled(bool enable_linear_filtering)
void setSrcRect(int x0, int y0, int x1, int y1)
const int * srcRect() const
void setDrawFramebuffer(FramebufferObject *fbo)
The render-target used as destination during blitting.
virtual bool onRendererFinished(const RendererAbstract *)
Reimplement to react to this event.
FramebufferObject * readFramebuffer()
The render-target used as source during blitting.
void setBufferMask(int buffer_mask)
takes a bitmask combination of EBufferBits
Implements a framebuffer object to be used as a rendering target as specified by the ARB_framebuffer_...
void copyPixels()
Performs the actual pixel copy from the read framebuffer to the draw framebuffer. ...
The ref<> class is used to reference-count an Object.
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.
const FramebufferObject * drawFramebuffer() const
The render-target used as destination during blitting.