Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wrapper class of the OpenGL function glCopyTexSubImage. More...
#include <CopyTexSubImage.hpp>
Public Member Functions | |
CopyTexSubImage () | |
EReadDrawBuffer | readBuffer () const |
The source buffer used when copying color buffers, ignored when using depth textures. | |
void | setReadBuffer (EReadDrawBuffer render_buffer) |
The source buffer used when copying color buffers, ignored when using depth textures. | |
virtual bool | onRenderingStarted (const RenderingAbstract *) |
Reimplement to react to this event. | |
virtual bool | onRenderingFinished (const RenderingAbstract *) |
Reimplement to react to this event. | |
virtual bool | onRendererStarted (const RendererAbstract *) |
Reimplement to react to this event. | |
virtual bool | onRendererFinished (const RendererAbstract *) |
Reimplement to react to this event. | |
virtual void | copyPixels ()=0 |
Copies the pixels from the specified read buffer to the specified texture. | |
Protected Attributes | |
EReadDrawBuffer | mReadBuffer |
Wrapper class of the OpenGL function glCopyTexSubImage.
Is the base class of CopyTexSubImage1D, CopyTexSubImage2D, CopyTexSubImage3D. Copies a rectangular pixels area from the specified read buffer to the specified portion of the texture. Can be bound to a Rendering as a RenderEventCallback in order to automatically copy the result of a rendering into a texture, see Rendering.
Definition at line 56 of file CopyTexSubImage.hpp.
vl::CopyTexSubImage::CopyTexSubImage | ( | ) | [inline] |
Definition at line 61 of file CopyTexSubImage.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
EReadDrawBuffer vl::CopyTexSubImage::readBuffer | ( | ) | const [inline] |
The source buffer used when copying color buffers, ignored when using depth textures.
Definition at line 67 of file CopyTexSubImage.hpp.
References mReadBuffer.
Referenced by vl::CopyTexSubImage3D::copyPixels(), vl::CopyTexSubImage2D::copyPixels(), and vl::CopyTexSubImage1D::copyPixels().
void vl::CopyTexSubImage::setReadBuffer | ( | EReadDrawBuffer | render_buffer ) | [inline] |
The source buffer used when copying color buffers, ignored when using depth textures.
Definition at line 70 of file CopyTexSubImage.hpp.
References mReadBuffer.
Referenced by vl::CopyTexSubImage1D::CopyTexSubImage1D(), vl::CopyTexSubImage2D::CopyTexSubImage2D(), and vl::CopyTexSubImage3D::CopyTexSubImage3D().
virtual bool vl::CopyTexSubImage::onRenderingStarted | ( | const RenderingAbstract * | ) | [inline, virtual] |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 72 of file CopyTexSubImage.hpp.
References copyPixels().
virtual bool vl::CopyTexSubImage::onRenderingFinished | ( | const RenderingAbstract * | ) | [inline, virtual] |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 78 of file CopyTexSubImage.hpp.
References copyPixels().
virtual bool vl::CopyTexSubImage::onRendererStarted | ( | const RendererAbstract * | ) | [inline, virtual] |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 84 of file CopyTexSubImage.hpp.
References copyPixels().
virtual bool vl::CopyTexSubImage::onRendererFinished | ( | const RendererAbstract * | ) | [inline, virtual] |
Reimplement to react to this event.
true
if the callback reacted to the given event. Implements vl::RenderEventCallback.
Definition at line 90 of file CopyTexSubImage.hpp.
References copyPixels().
virtual void vl::CopyTexSubImage::copyPixels | ( | ) | [pure virtual] |
Copies the pixels from the specified read buffer to the specified texture.
Implemented in vl::CopyTexSubImage1D, vl::CopyTexSubImage2D, and vl::CopyTexSubImage3D.
Referenced by onRendererFinished(), onRendererStarted(), onRenderingFinished(), and onRenderingStarted().
EReadDrawBuffer vl::CopyTexSubImage::mReadBuffer [protected] |
Definition at line 102 of file CopyTexSubImage.hpp.
Referenced by readBuffer(), and setReadBuffer().