Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wraps glCopyTexSubImage3D, see also CopyTexSubImage. To be used also for 2D array textures. More...
#include <CopyTexSubImage.hpp>
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) | |
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) |
Texture * | texture () |
const Texture * | texture () 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< Texture > | mTexture |
int | mLevel |
int | mXOffset |
int | mYOffset |
int | mZOffset |
int | mX |
int | mY |
int | mWidth |
int | mHeight |
Wraps glCopyTexSubImage3D, see also CopyTexSubImage. To be used also for 2D array textures.
Definition at line 283 of file CopyTexSubImage.hpp.
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] |
void vl::CopyTexSubImage3D::setTexture | ( | Texture * | tex ) | [inline] |
Definition at line 304 of file CopyTexSubImage.hpp.
References mTexture.
void vl::CopyTexSubImage3D::setLevel | ( | int | level ) | [inline] |
Definition at line 305 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setXOffset | ( | int | xoffset ) | [inline] |
Definition at line 306 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setYOffset | ( | int | yoffset ) | [inline] |
Definition at line 307 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setZOffset | ( | int | zoffset ) | [inline] |
Definition at line 308 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setX | ( | int | x ) | [inline] |
Definition at line 309 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setY | ( | int | y ) | [inline] |
Definition at line 310 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setWidth | ( | int | width ) | [inline] |
Definition at line 311 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage3D::setHeight | ( | int | height ) | [inline] |
Definition at line 312 of file CopyTexSubImage.hpp.
Texture* vl::CopyTexSubImage3D::texture | ( | ) | [inline] |
Definition at line 314 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 315 of file CopyTexSubImage.hpp.
References vl::ref< T >::get(), and mTexture.
int vl::CopyTexSubImage3D::level | ( | ) | const [inline] |
Definition at line 316 of file CopyTexSubImage.hpp.
References mLevel.
Referenced by copyPixels(), CopyTexSubImage3D(), and setLevel().
int vl::CopyTexSubImage3D::xoffset | ( | ) | const [inline] |
Definition at line 317 of file CopyTexSubImage.hpp.
References mXOffset.
Referenced by copyPixels(), CopyTexSubImage3D(), and setXOffset().
int vl::CopyTexSubImage3D::yoffset | ( | ) | const [inline] |
Definition at line 318 of file CopyTexSubImage.hpp.
References mYOffset.
Referenced by copyPixels(), CopyTexSubImage3D(), and setYOffset().
int vl::CopyTexSubImage3D::zoffset | ( | ) | const [inline] |
Definition at line 319 of file CopyTexSubImage.hpp.
References mZOffset.
Referenced by copyPixels(), CopyTexSubImage3D(), and setZOffset().
int vl::CopyTexSubImage3D::x | ( | ) | const [inline] |
Definition at line 320 of file CopyTexSubImage.hpp.
References mX.
Referenced by copyPixels(), CopyTexSubImage3D(), and setX().
int vl::CopyTexSubImage3D::y | ( | ) | const [inline] |
Definition at line 321 of file CopyTexSubImage.hpp.
References mY.
Referenced by copyPixels(), CopyTexSubImage3D(), and setY().
int vl::CopyTexSubImage3D::width | ( | ) | const [inline] |
Definition at line 322 of file CopyTexSubImage.hpp.
References mWidth.
Referenced by copyPixels(), CopyTexSubImage3D(), and setWidth().
int vl::CopyTexSubImage3D::height | ( | ) | const [inline] |
Definition at line 323 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 325 of file CopyTexSubImage.hpp.
References vl::Log::error(), vl::Has_Texture_3D, height(), level(), vl::CopyTexSubImage::readBuffer(), vl::TD_TEXTURE_3D, texture(), VL_CHECK, VL_CHECK_OGL, width(), x(), xoffset(), y(), yoffset(), and zoffset().
ref<Texture> vl::CopyTexSubImage3D::mTexture [protected] |
Definition at line 367 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setTexture(), and texture().
int vl::CopyTexSubImage3D::mLevel [protected] |
Definition at line 368 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), level(), and setLevel().
int vl::CopyTexSubImage3D::mXOffset [protected] |
Definition at line 369 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setXOffset(), and xoffset().
int vl::CopyTexSubImage3D::mYOffset [protected] |
Definition at line 370 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setYOffset(), and yoffset().
int vl::CopyTexSubImage3D::mZOffset [protected] |
Definition at line 371 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setZOffset(), and zoffset().
int vl::CopyTexSubImage3D::mX [protected] |
Definition at line 372 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setX(), and x().
int vl::CopyTexSubImage3D::mY [protected] |
Definition at line 373 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setY(), and y().
int vl::CopyTexSubImage3D::mWidth [protected] |
Definition at line 374 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), setWidth(), and width().
int vl::CopyTexSubImage3D::mHeight [protected] |
Definition at line 375 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage3D(), height(), and setHeight().