Visualization Library

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

vl::CopyTexSubImage3D Class Reference

Wraps glCopyTexSubImage3D, see also CopyTexSubImage. To be used also for 2D array textures. More...

#include <CopyTexSubImage.hpp>

Inheritance diagram for vl::CopyTexSubImage3D:
vl::CopyTexSubImage vl::RenderEventCallback vl::Object

List of all members.

Public Member Functions

 CopyTexSubImage3D (int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height, Texture *texture, EReadDrawBuffer read_buffer=RDB_BACK_LEFT)
virtual const char * className ()
 Returns the name of the class.
void setTexture (Texture *tex)
void setLevel (int level)
void setXOffset (int xoffset)
void setYOffset (int yoffset)
void setZOffset (int zoffset)
void setX (int x)
void setY (int y)
void setWidth (int width)
void setHeight (int height)
Texturetexture ()
const Texturetexture () const
int level () const
int xoffset () const
int yoffset () const
int zoffset () const
int x () const
int y () const
int width () const
int height () const
virtual void copyPixels ()
 Copies the pixels from the specified read buffer to the specified texture.

Protected Attributes

ref< TexturemTexture
int mLevel
int mXOffset
int mYOffset
int mZOffset
int mX
int mY
int mWidth
int mHeight

Detailed Description

Wraps glCopyTexSubImage3D, see also CopyTexSubImage. To be used also for 2D array textures.

Definition at line 270 of file CopyTexSubImage.hpp.


Constructor & Destructor Documentation

vl::CopyTexSubImage3D::CopyTexSubImage3D ( int  level,
int  xoffset,
int  yoffset,
int  zoffset,
int  x,
int  y,
int  width,
int  height,
Texture texture,
EReadDrawBuffer  read_buffer = RDB_BACK_LEFT 
) [inline]

Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::CopyTexSubImage.

Definition at line 288 of file CopyTexSubImage.hpp.

void vl::CopyTexSubImage3D::setTexture ( Texture tex ) [inline]

Definition at line 290 of file CopyTexSubImage.hpp.

References mTexture.

void vl::CopyTexSubImage3D::setLevel ( int  level ) [inline]

Definition at line 291 of file CopyTexSubImage.hpp.

References level(), and mLevel.

void vl::CopyTexSubImage3D::setXOffset ( int  xoffset ) [inline]

Definition at line 292 of file CopyTexSubImage.hpp.

References mXOffset, and xoffset().

void vl::CopyTexSubImage3D::setYOffset ( int  yoffset ) [inline]

Definition at line 293 of file CopyTexSubImage.hpp.

References mYOffset, and yoffset().

void vl::CopyTexSubImage3D::setZOffset ( int  zoffset ) [inline]

Definition at line 294 of file CopyTexSubImage.hpp.

References mZOffset, and zoffset().

void vl::CopyTexSubImage3D::setX ( int  x ) [inline]

Definition at line 295 of file CopyTexSubImage.hpp.

References mX, and x().

void vl::CopyTexSubImage3D::setY ( int  y ) [inline]

Definition at line 296 of file CopyTexSubImage.hpp.

References mY, and y().

void vl::CopyTexSubImage3D::setWidth ( int  width ) [inline]

Definition at line 297 of file CopyTexSubImage.hpp.

References mWidth, and width().

void vl::CopyTexSubImage3D::setHeight ( int  height ) [inline]

Definition at line 298 of file CopyTexSubImage.hpp.

References height(), and mHeight.

Texture* vl::CopyTexSubImage3D::texture (  ) [inline]

Definition at line 300 of file CopyTexSubImage.hpp.

References vl::ref< T >::get(), and mTexture.

Referenced by copyPixels(), and CopyTexSubImage3D().

const Texture* vl::CopyTexSubImage3D::texture (  ) const [inline]

Definition at line 301 of file CopyTexSubImage.hpp.

References vl::ref< T >::get(), and mTexture.

int vl::CopyTexSubImage3D::level (  ) const [inline]

Definition at line 302 of file CopyTexSubImage.hpp.

References mLevel.

Referenced by copyPixels(), CopyTexSubImage3D(), and setLevel().

int vl::CopyTexSubImage3D::xoffset (  ) const [inline]

Definition at line 303 of file CopyTexSubImage.hpp.

References mXOffset.

Referenced by copyPixels(), CopyTexSubImage3D(), and setXOffset().

int vl::CopyTexSubImage3D::yoffset (  ) const [inline]

Definition at line 304 of file CopyTexSubImage.hpp.

References mYOffset.

Referenced by copyPixels(), CopyTexSubImage3D(), and setYOffset().

int vl::CopyTexSubImage3D::zoffset (  ) const [inline]

Definition at line 305 of file CopyTexSubImage.hpp.

References mZOffset.

Referenced by copyPixels(), CopyTexSubImage3D(), and setZOffset().

int vl::CopyTexSubImage3D::x (  ) const [inline]

Definition at line 306 of file CopyTexSubImage.hpp.

References mX.

Referenced by copyPixels(), CopyTexSubImage3D(), and setX().

int vl::CopyTexSubImage3D::y (  ) const [inline]

Definition at line 307 of file CopyTexSubImage.hpp.

References mY.

Referenced by copyPixels(), CopyTexSubImage3D(), and setY().

int vl::CopyTexSubImage3D::width (  ) const [inline]

Definition at line 308 of file CopyTexSubImage.hpp.

References mWidth.

Referenced by copyPixels(), CopyTexSubImage3D(), and setWidth().

int vl::CopyTexSubImage3D::height (  ) const [inline]

Definition at line 309 of file CopyTexSubImage.hpp.

References mHeight.

Referenced by copyPixels(), CopyTexSubImage3D(), and setHeight().

virtual void vl::CopyTexSubImage3D::copyPixels (  ) [inline, virtual]

Copies the pixels from the specified read buffer to the specified texture.

Implements vl::CopyTexSubImage.

Definition at line 311 of file CopyTexSubImage.hpp.

References vl::Log::error(), height(), level(), vl::CopyTexSubImage::readBuffer(), vl::TD_TEXTURE_3D, texture(), VL_CHECK, VL_CHECK_OGL, width(), x(), xoffset(), y(), yoffset(), and zoffset().


Member Data Documentation

Definition at line 347 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setTexture(), and texture().

Definition at line 348 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), level(), and setLevel().

Definition at line 349 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setXOffset(), and xoffset().

Definition at line 350 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setYOffset(), and yoffset().

Definition at line 351 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setZOffset(), and zoffset().

int vl::CopyTexSubImage3D::mX [protected]

Definition at line 352 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setX(), and x().

int vl::CopyTexSubImage3D::mY [protected]

Definition at line 353 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setY(), and y().

Definition at line 354 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), setWidth(), and width().

Definition at line 355 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage3D(), height(), and setHeight().


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

Visualization Library v2011.05.1144 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 13 2011 21:59:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.