# Visualization Library

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

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions | Protected Attributes

# vl::CopyTexSubImage1D Class Reference

Wraps glCopyTexSubImage1D, see also CopyTexSubImage. More...

`#include <CopyTexSubImage.hpp>`

Inheritance diagram for vl::CopyTexSubImage1D:

List of all members.

## Public Member Functions

| CopyTexSubImage1D (int level, int xoffset, int x, int y, int width, Texture *texture=NULL, 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 | setX (int x)
void | setY (int y)
void | setWidth (int width)
Texture * | texture ()
const Texture * | texture () const
int | level () const
int | xoffset () const
int | x () const
int | y () const
int | width () 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 | mX
int | mY
int | mWidth

## Detailed Description

Wraps glCopyTexSubImage1D, see also CopyTexSubImage.

Definition at line 105 of file CopyTexSubImage.hpp.

## Constructor & Destructor Documentation

vl::CopyTexSubImage1D::CopyTexSubImage1D | ( | int | level,
|  | int | xoffset,
|  | int | x,
|  | int | y,
|  | int | width,
|  | Texture * | texture = `NULL`,
|  | EReadDrawBuffer | read_buffer = `RDB_BACK_LEFT`
| ) |  | `[inline]`

Definition at line 108 of file CopyTexSubImage.hpp.

References level(), mLevel, mTexture, mWidth, mX, mXOffset, mY, vl::CopyTexSubImage::setReadBuffer(), texture(), VL_DEBUG_SET_OBJECT_NAME, width(), x(), xoffset(), and y().

## Member Function Documentation

virtual const char* vl::CopyTexSubImage1D::className | ( | ) | `[inline, virtual]`

Returns the name of the class.

Reimplemented from vl::CopyTexSubImage.

Definition at line 119 of file CopyTexSubImage.hpp.

void vl::CopyTexSubImage1D::setTexture | ( | Texture * | tex ) | `[inline]`

Definition at line 121 of file CopyTexSubImage.hpp.

References mTexture.

void vl::CopyTexSubImage1D::setLevel | ( | int | level ) | `[inline]`

Definition at line 122 of file CopyTexSubImage.hpp.

References level(), and mLevel.

void vl::CopyTexSubImage1D::setXOffset | ( | int | xoffset ) | `[inline]`

Definition at line 123 of file CopyTexSubImage.hpp.

References mXOffset, and xoffset().

void vl::CopyTexSubImage1D::setX | ( | int | x ) | `[inline]`

Definition at line 124 of file CopyTexSubImage.hpp.

References mX, and x().

void vl::CopyTexSubImage1D::setY | ( | int | y ) | `[inline]`

Definition at line 125 of file CopyTexSubImage.hpp.

References mY, and y().

void vl::CopyTexSubImage1D::setWidth | ( | int | width ) | `[inline]`

Definition at line 126 of file CopyTexSubImage.hpp.

References mWidth, and width().

Texture* vl::CopyTexSubImage1D::texture | ( | ) | `[inline]`

Definition at line 128 of file CopyTexSubImage.hpp.

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

Referenced by copyPixels(), and CopyTexSubImage1D().

const Texture* vl::CopyTexSubImage1D::texture | ( | ) | const`[inline]`

Definition at line 129 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::level | ( | ) | const`[inline]`

Definition at line 130 of file CopyTexSubImage.hpp.

References mLevel.

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

int vl::CopyTexSubImage1D::xoffset | ( | ) | const`[inline]`

Definition at line 131 of file CopyTexSubImage.hpp.

References mXOffset.

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

int vl::CopyTexSubImage1D::x | ( | ) | const`[inline]`

Definition at line 132 of file CopyTexSubImage.hpp.

References mX.

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

int vl::CopyTexSubImage1D::y | ( | ) | const`[inline]`

Definition at line 133 of file CopyTexSubImage.hpp.

References mY.

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

int vl::CopyTexSubImage1D::width | ( | ) | const`[inline]`

Definition at line 134 of file CopyTexSubImage.hpp.

References mWidth.

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

virtual void vl::CopyTexSubImage1D::copyPixels | ( | ) | `[inline, virtual]`

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

Implements vl::CopyTexSubImage.

Definition at line 136 of file CopyTexSubImage.hpp.

References level(), vl::CopyTexSubImage::readBuffer(), vl::TD_TEXTURE_1D, texture(), VL_CHECK, VL_CHECK_OGL, width(), x(), xoffset(), and y().

## Member Data Documentation

ref<Texture> vl::CopyTexSubImage1D::mTexture`[protected]`

Definition at line 163 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::mLevel`[protected]`

Definition at line 164 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::mXOffset`[protected]`

Definition at line 165 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::mX`[protected]`

Definition at line 166 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::mY`[protected]`

Definition at line 167 of file CopyTexSubImage.hpp.

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

int vl::CopyTexSubImage1D::mWidth`[protected]`

Definition at line 168 of file CopyTexSubImage.hpp.

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

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/CopyTexSubImage.hpp

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:37.
Permission is granted to use this page to write and publish articles regarding Visualization Library.