Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::CopyTexSubImage Class Reference

Wrapper class of the OpenGL function glCopyTexSubImage. More...

#include <CopyTexSubImage.hpp>

Inheritance diagram for vl::CopyTexSubImage:
vl::RenderingCallback vl::Object vl::CopyTexSubImage1D vl::CopyTexSubImage2D vl::CopyTexSubImage3D

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 CopyTexSubImage ()
EReadDrawBuffer readBuffer () const
void setReadBuffer (EReadDrawBuffer render_buffer)
virtual bool renderingCallback (const RenderingAbstract *, ERenderingCallback reason)
 Implements the actual code to be executed upon callback activation.
virtual void copyPixels ()=0
 Copies the pixels from the specified read buffer to the specified texture.

Protected Attributes

EReadDrawBuffer mReadBuffer

Detailed Description

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 RenderingCallback in order to automatically copy the result of a rendering into a texture, see Rendering.

Note:
This class supports Frame-Buffer-Objects, 3D textures, cubemaps.
See also:
FBORenderTarget, FBOAttachmentAbstract, Rendering, RenderingCallback, CopyTexSubImage1D, CopyTexSubImage2D, CopyTexSubImage3D

Constructor & Destructor Documentation

vl::CopyTexSubImage::CopyTexSubImage (  ) [inline]

Member Function Documentation

virtual const char* vl::CopyTexSubImage::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::RenderingCallback.

Reimplemented in vl::CopyTexSubImage1D, vl::CopyTexSubImage2D, and vl::CopyTexSubImage3D.

EReadDrawBuffer vl::CopyTexSubImage::readBuffer (  ) const [inline]
void vl::CopyTexSubImage::setReadBuffer ( EReadDrawBuffer  render_buffer ) [inline]
virtual bool vl::CopyTexSubImage::renderingCallback ( const RenderingAbstract rendering,
ERenderingCallback  reason 
) [inline, virtual]

Implements the actual code to be executed upon callback activation.

Returns:
true if the callback reacted to the given reason

Implements vl::RenderingCallback.

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.


Member Data Documentation


The documentation for this class was generated from the following file:

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:07:58.
Permission is granted to use this page to write and publish articles regarding Visualization Library.