Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A RenderEventCallback that can be used to copy pixels from a framebuffer to another as described in GL_EXT_framebuffer_blit. More...
#include <BlitFramebuffer.hpp>
Public Member Functions | |
BlitFramebuffer () | |
void | copyPixels () |
Performs the actual pixel copy from the read framebuffer to the draw framebuffer. More... | |
virtual bool | onRenderingStarted (const RenderingAbstract *) |
Reimplement to react to this event. More... | |
virtual bool | onRenderingFinished (const RenderingAbstract *) |
Reimplement to react to this event. More... | |
virtual bool | onRendererStarted (const RendererAbstract *) |
Reimplement to react to this event. More... | |
virtual bool | onRendererFinished (const RendererAbstract *) |
Reimplement to react to this event. More... | |
void | setReadFramebuffer (Framebuffer *fbo) |
The render-target used as source during blitting. More... | |
const Framebuffer * | readFramebuffer () const |
The render-target used as source during blitting. More... | |
Framebuffer * | readFramebuffer () |
The render-target used as source during blitting. More... | |
void | setReadBuffer (EReadDrawBuffer read_buffer) |
The read-buffer of the read-render-target used as pixel source during blitting. More... | |
EReadDrawBuffer | readBuffer () const |
The read-buffer of the read-render-target used as pixel source during blitting. More... | |
void | setDrawFramebuffer (Framebuffer *fbo) |
The render-target used as destination during blitting. More... | |
const Framebuffer * | drawFramebuffer () const |
The render-target used as destination during blitting. More... | |
Framebuffer * | drawFramebuffer () |
The render-target used as destination during blitting. More... | |
void | setSrcRect (int x0, int y0, int x1, int y1) |
void | setDstRect (int x0, int y0, int x1, int y1) |
const int * | srcRect () const |
const int * | dstRect () const |
void | setBufferMask (int buffer_mask) |
takes a bitmask combination of EBufferBits More... | |
int | bufferMask () const |
void | setLinearFilteringEnabled (bool enable_linear_filtering) |
bool | linearFilteringEnabled () const |
Public Member Functions inherited from vl::RenderEventCallback | |
RenderEventCallback () | |
void | setRemoveAfterCall (bool remove) |
Defines if the callback shall be removed after being executed. More... | |
bool | removeAfterCall () const |
Defines if the callback shall be removed after being executed. More... | |
void | setEnabled (bool enabled) |
Enabled/disabled callback. More... | |
bool | isEnabled () const |
Whether the callback is enabled or not. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Protected Attributes | |
ref< Framebuffer > | mReadFramebuffer |
ref< Framebuffer > | mDrawFramebuffer |
int | mSrcRect [4] |
int | mDstRect [4] |
int | mBufferMask |
EReadDrawBuffer | mReadBuffer |
bool | mLinearFilteringEnabled |
Protected Attributes inherited from vl::RenderEventCallback | |
bool | mRemoveAfterCall |
bool | mEnabled |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
A RenderEventCallback that can be used to copy pixels from a framebuffer to another as described in GL_EXT_framebuffer_blit.
Definition at line 44 of file BlitFramebuffer.hpp.
|
inline |
Definition at line 49 of file BlitFramebuffer.hpp.
References mBufferMask, mLinearFilteringEnabled, mReadBuffer, vl::RDB_COLOR_ATTACHMENT0, setDstRect(), and setSrcRect().
|
inline |
Definition at line 168 of file BlitFramebuffer.hpp.
References mBufferMask.
|
inline |
Performs the actual pixel copy from the read framebuffer to the draw framebuffer.
Definition at line 60 of file BlitFramebuffer.hpp.
References vl::Framebuffer::activate(), drawFramebuffer(), vl::FBB_DRAW_FRAMEBUFFER, vl::FBB_READ_FRAMEBUFFER, mBufferMask, mDstRect, mLinearFilteringEnabled, mReadBuffer, mSrcRect, readFramebuffer(), and VL_CHECK_OGL.
Referenced by onRendererFinished(), onRendererStarted(), onRenderingFinished(), and onRenderingStarted().
|
inline |
The render-target used as destination during blitting.
Definition at line 142 of file BlitFramebuffer.hpp.
References mDrawFramebuffer.
Referenced by copyPixels().
|
inline |
The render-target used as destination during blitting.
Definition at line 145 of file BlitFramebuffer.hpp.
References mDrawFramebuffer.
|
inline |
Definition at line 164 of file BlitFramebuffer.hpp.
References mDstRect.
|
inline |
Definition at line 171 of file BlitFramebuffer.hpp.
References mLinearFilteringEnabled.
|
inlinevirtual |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 117 of file BlitFramebuffer.hpp.
References copyPixels().
|
inlinevirtual |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 111 of file BlitFramebuffer.hpp.
References copyPixels().
|
inlinevirtual |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 105 of file BlitFramebuffer.hpp.
References copyPixels().
|
inlinevirtual |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 99 of file BlitFramebuffer.hpp.
References copyPixels().
|
inline |
The read-buffer of the read-render-target used as pixel source during blitting.
Definition at line 136 of file BlitFramebuffer.hpp.
References mReadBuffer.
|
inline |
The render-target used as source during blitting.
Definition at line 127 of file BlitFramebuffer.hpp.
References mReadFramebuffer.
Referenced by copyPixels().
|
inline |
The render-target used as source during blitting.
Definition at line 130 of file BlitFramebuffer.hpp.
References mReadFramebuffer.
|
inline |
takes a bitmask combination of EBufferBits
Definition at line 167 of file BlitFramebuffer.hpp.
References mBufferMask.
|
inline |
The render-target used as destination during blitting.
Definition at line 139 of file BlitFramebuffer.hpp.
References mDrawFramebuffer.
|
inline |
Definition at line 155 of file BlitFramebuffer.hpp.
References mDstRect.
Referenced by BlitFramebuffer().
|
inline |
Definition at line 170 of file BlitFramebuffer.hpp.
References mLinearFilteringEnabled.
|
inline |
The read-buffer of the read-render-target used as pixel source during blitting.
Definition at line 133 of file BlitFramebuffer.hpp.
References mReadBuffer.
|
inline |
The render-target used as source during blitting.
Definition at line 124 of file BlitFramebuffer.hpp.
References mReadFramebuffer.
|
inline |
Definition at line 147 of file BlitFramebuffer.hpp.
References mSrcRect.
Referenced by BlitFramebuffer().
|
inline |
Definition at line 163 of file BlitFramebuffer.hpp.
References mSrcRect.
|
protected |
Definition at line 178 of file BlitFramebuffer.hpp.
Referenced by BlitFramebuffer(), bufferMask(), copyPixels(), and setBufferMask().
|
protected |
Definition at line 175 of file BlitFramebuffer.hpp.
Referenced by drawFramebuffer(), and setDrawFramebuffer().
|
protected |
Definition at line 177 of file BlitFramebuffer.hpp.
Referenced by copyPixels(), dstRect(), and setDstRect().
|
protected |
Definition at line 180 of file BlitFramebuffer.hpp.
Referenced by BlitFramebuffer(), copyPixels(), linearFilteringEnabled(), and setLinearFilteringEnabled().
|
protected |
Definition at line 179 of file BlitFramebuffer.hpp.
Referenced by BlitFramebuffer(), copyPixels(), readBuffer(), and setReadBuffer().
|
protected |
Definition at line 174 of file BlitFramebuffer.hpp.
Referenced by readFramebuffer(), and setReadFramebuffer().
|
protected |
Definition at line 176 of file BlitFramebuffer.hpp.
Referenced by copyPixels(), setSrcRect(), and srcRect().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:07.
© Copyright Michele Bosi. All rights reserved.