Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wraps glCopyTexSubImage2D, see also CopyTexSubImage. To be used also for 1D array textures. More...
#include <CopyTexSubImage.hpp>
Public Member Functions | |
CopyTexSubImage2D (int level, int xoffset, int yoffset, int x, int y, int width, int height, Texture *texture=NULL, ETex2DTarget target=T2DT_TEXTURE_2D, EReadDrawBuffer read_buffer=RDB_BACK_LEFT) | |
void | setTexture (Texture *tex) |
void | setLevel (int level) |
void | setXOffset (int xoffset) |
void | setYOffset (int yoffset) |
void | setX (int x) |
void | setY (int y) |
void | setWidth (int width) |
void | setHeight (int height) |
void | setTarget (ETex2DTarget target) |
Texture * | texture () |
const Texture * | texture () const |
int | level () const |
int | xoffset () const |
int | yoffset () const |
int | x () const |
int | y () const |
int | width () const |
int | height () const |
ETex2DTarget | target () 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 | mX |
int | mY |
int | mWidth |
int | mHeight |
ETex2DTarget | mTarget |
Wraps glCopyTexSubImage2D, see also CopyTexSubImage. To be used also for 1D array textures.
Definition at line 180 of file CopyTexSubImage.hpp.
vl::CopyTexSubImage2D::CopyTexSubImage2D | ( | int | level, |
int | xoffset, | ||
int | yoffset, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
Texture * | texture = NULL , |
||
ETex2DTarget | target = T2DT_TEXTURE_2D , |
||
EReadDrawBuffer | read_buffer = RDB_BACK_LEFT |
||
) | [inline] |
void vl::CopyTexSubImage2D::setTexture | ( | Texture * | tex ) | [inline] |
Definition at line 201 of file CopyTexSubImage.hpp.
References mTexture.
void vl::CopyTexSubImage2D::setLevel | ( | int | level ) | [inline] |
Definition at line 202 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setXOffset | ( | int | xoffset ) | [inline] |
Definition at line 203 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setYOffset | ( | int | yoffset ) | [inline] |
Definition at line 204 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setX | ( | int | x ) | [inline] |
Definition at line 205 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setY | ( | int | y ) | [inline] |
Definition at line 206 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setWidth | ( | int | width ) | [inline] |
Definition at line 207 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setHeight | ( | int | height ) | [inline] |
Definition at line 208 of file CopyTexSubImage.hpp.
void vl::CopyTexSubImage2D::setTarget | ( | ETex2DTarget | target ) | [inline] |
Definition at line 209 of file CopyTexSubImage.hpp.
Texture* vl::CopyTexSubImage2D::texture | ( | ) | [inline] |
Definition at line 211 of file CopyTexSubImage.hpp.
References vl::ref< T >::get(), and mTexture.
Referenced by copyPixels(), and CopyTexSubImage2D().
const Texture* vl::CopyTexSubImage2D::texture | ( | ) | const [inline] |
Definition at line 212 of file CopyTexSubImage.hpp.
References vl::ref< T >::get(), and mTexture.
int vl::CopyTexSubImage2D::level | ( | ) | const [inline] |
Definition at line 213 of file CopyTexSubImage.hpp.
References mLevel.
Referenced by copyPixels(), CopyTexSubImage2D(), and setLevel().
int vl::CopyTexSubImage2D::xoffset | ( | ) | const [inline] |
Definition at line 214 of file CopyTexSubImage.hpp.
References mXOffset.
Referenced by copyPixels(), CopyTexSubImage2D(), and setXOffset().
int vl::CopyTexSubImage2D::yoffset | ( | ) | const [inline] |
Definition at line 215 of file CopyTexSubImage.hpp.
References mYOffset.
Referenced by copyPixels(), CopyTexSubImage2D(), and setYOffset().
int vl::CopyTexSubImage2D::x | ( | ) | const [inline] |
Definition at line 216 of file CopyTexSubImage.hpp.
References mX.
Referenced by copyPixels(), CopyTexSubImage2D(), and setX().
int vl::CopyTexSubImage2D::y | ( | ) | const [inline] |
Definition at line 217 of file CopyTexSubImage.hpp.
References mY.
Referenced by copyPixels(), CopyTexSubImage2D(), and setY().
int vl::CopyTexSubImage2D::width | ( | ) | const [inline] |
Definition at line 218 of file CopyTexSubImage.hpp.
References mWidth.
Referenced by copyPixels(), CopyTexSubImage2D(), and setWidth().
int vl::CopyTexSubImage2D::height | ( | ) | const [inline] |
Definition at line 219 of file CopyTexSubImage.hpp.
References mHeight.
Referenced by copyPixels(), CopyTexSubImage2D(), and setHeight().
ETex2DTarget vl::CopyTexSubImage2D::target | ( | ) | const [inline] |
Definition at line 220 of file CopyTexSubImage.hpp.
References mTarget.
Referenced by copyPixels(), CopyTexSubImage2D(), and setTarget().
virtual void vl::CopyTexSubImage2D::copyPixels | ( | ) | [inline, virtual] |
Copies the pixels from the specified read buffer to the specified texture.
Implements vl::CopyTexSubImage.
Definition at line 222 of file CopyTexSubImage.hpp.
References height(), level(), vl::CopyTexSubImage::readBuffer(), vl::T2DT_TEXTURE_CUBE_MAP_NEGATIVE_X, vl::T2DT_TEXTURE_CUBE_MAP_NEGATIVE_Y, vl::T2DT_TEXTURE_CUBE_MAP_NEGATIVE_Z, vl::T2DT_TEXTURE_CUBE_MAP_POSITIVE_X, vl::T2DT_TEXTURE_CUBE_MAP_POSITIVE_Y, vl::T2DT_TEXTURE_CUBE_MAP_POSITIVE_Z, target(), texture(), VL_CHECK, VL_CHECK_OGL, width(), x(), xoffset(), y(), and yoffset().
ref<Texture> vl::CopyTexSubImage2D::mTexture [protected] |
Definition at line 271 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setTexture(), and texture().
int vl::CopyTexSubImage2D::mLevel [protected] |
Definition at line 272 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), level(), and setLevel().
int vl::CopyTexSubImage2D::mXOffset [protected] |
Definition at line 273 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setXOffset(), and xoffset().
int vl::CopyTexSubImage2D::mYOffset [protected] |
Definition at line 274 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setYOffset(), and yoffset().
int vl::CopyTexSubImage2D::mX [protected] |
Definition at line 275 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setX(), and x().
int vl::CopyTexSubImage2D::mY [protected] |
Definition at line 276 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setY(), and y().
int vl::CopyTexSubImage2D::mWidth [protected] |
Definition at line 277 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setWidth(), and width().
int vl::CopyTexSubImage2D::mHeight [protected] |
Definition at line 278 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), height(), and setHeight().
ETex2DTarget vl::CopyTexSubImage2D::mTarget [protected] |
Definition at line 279 of file CopyTexSubImage.hpp.
Referenced by CopyTexSubImage2D(), setTarget(), and target().