Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::CopyTexSubImage2D Class Reference

Wraps glCopyTexSubImage2D, see also CopyTexSubImage. To be used also for 1D array textures. More...

#include <CopyTexSubImage.hpp>

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

List of all members.

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)
Texturetexture ()
const Texturetexture () 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< TexturemTexture
int mLevel
int mXOffset
int mYOffset
int mX
int mY
int mWidth
int mHeight
ETex2DTarget mTarget

Detailed Description

Wraps glCopyTexSubImage2D, see also CopyTexSubImage. To be used also for 1D array textures.

Definition at line 180 of file CopyTexSubImage.hpp.


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

References level(), and mLevel.

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

Definition at line 203 of file CopyTexSubImage.hpp.

References mXOffset, and xoffset().

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

Definition at line 204 of file CopyTexSubImage.hpp.

References mYOffset, and yoffset().

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

Definition at line 205 of file CopyTexSubImage.hpp.

References mX, and x().

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

Definition at line 206 of file CopyTexSubImage.hpp.

References mY, and y().

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

Definition at line 207 of file CopyTexSubImage.hpp.

References mWidth, and width().

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

Definition at line 208 of file CopyTexSubImage.hpp.

References height(), and mHeight.

void vl::CopyTexSubImage2D::setTarget ( ETex2DTarget  target ) [inline]

Definition at line 209 of file CopyTexSubImage.hpp.

References mTarget, and target().

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]

Member Data Documentation

Definition at line 271 of file CopyTexSubImage.hpp.

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

Definition at line 272 of file CopyTexSubImage.hpp.

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

Definition at line 273 of file CopyTexSubImage.hpp.

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

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().

Definition at line 277 of file CopyTexSubImage.hpp.

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

Definition at line 278 of file CopyTexSubImage.hpp.

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

Definition at line 279 of file CopyTexSubImage.hpp.

Referenced by CopyTexSubImage2D(), setTarget(), and target().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:09.
Permission is granted to use this page to write and publish articles regarding Visualization Library.