# Visualization Library A lightweight C++ OpenGL middleware for 2D/3D graphics | [Home] [Tutorials] [All Classes] [Grouped Classes]

# vl::TexParameter Class Reference

Wraps the OpenGL function glTexParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml for more information. More...

`#include <Texture.hpp>`

Inheritance diagram for vl::TexParameter:

List of all members.

## Public Member Functions
| TexParameter ()
virtual const char * | className ()
| Returns the name of the class.
void | apply (ETextureDimension dimension)
ETexParamFilter | minFilter () const
ETexParamFilter | magFilter () const
ETexParamWrap | wrapS () const
ETexParamWrap | wrapT () const
ETexParamWrap | wrapR () const
fvec4 | borderColor () const
float | anisotropy () const
bool | generateMipmap () const
ETexCompareMode | compareMode () const
ETexCompareFunc | compareFunc () const
EDepthTextureMode | depthTextureMode () const
void | setMinFilter (ETexParamFilter minfilter)
void | setMagFilter (ETexParamFilter magfilter)
void | setWrapS (ETexParamWrap texturewrap)
void | setWrapT (ETexParamWrap texturewrap)
void | setWrapR (ETexParamWrap texturewrap)
void | setBorderColor (fvec4 bordercolor)
void | setAnisotropy (float anisotropy)
void | setGenerateMipmap (bool generate_mipmap)
void | setTexCompareMode (ETexCompareMode mode)
void | setTexCompareFunc (ETexCompareFunc func)
void | setDepthTextureMode (EDepthTextureMode mode)
bool | dirty () const
## Protected Attributes
ETexParamFilter | mMinFilter
ETexParamFilter | mMagfilter
ETexParamWrap | mWrapS
ETexParamWrap | mWrapT
ETexParamWrap | mWrapR
ETexCompareMode | mCompareMode
ETexCompareFunc | mCompareFunc
EDepthTextureMode | mDepthTextureMode
fvec4 | mBorderColor
float | mAnisotropy
bool | mGenerateMipmap
bool | mDirty

## Detailed Description

Wraps the OpenGL function glTexParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml for more information.

Note:
  A TexParameter defines a set of variables associated to a Texture while TexGen and TexEnv define a set of variables associated to a TextureUnit.

See also:
  - TextureUnit
  - Texture
  - TexGen
  - TexEnv
  - Shader
  - Effect
  - Actor

## Constructor & Destructor Documentation

TexParameter::TexParameter | ( |  | ) |

## Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::Object.

void TexParameter::apply | ( | ETextureDimension | dimension | ) |

ETexParamFilter vl::TexParameter::minFilter | ( |  | ) | const`[inline]`

ETexParamFilter vl::TexParameter::magFilter | ( |  | ) | const`[inline]`

ETexParamWrap vl::TexParameter::wrapS | ( |  | ) | const`[inline]`

ETexParamWrap vl::TexParameter::wrapT | ( |  | ) | const`[inline]`

ETexParamWrap vl::TexParameter::wrapR | ( |  | ) | const`[inline]`

fvec4 vl::TexParameter::borderColor | ( |  | ) | const`[inline]`

float vl::TexParameter::anisotropy | ( |  | ) | const`[inline]`

bool vl::TexParameter::generateMipmap | ( |  | ) | const`[inline]`

ETexCompareMode vl::TexParameter::compareMode | ( |  | ) | const`[inline]`

ETexCompareFunc vl::TexParameter::compareFunc | ( |  | ) | const`[inline]`

EDepthTextureMode vl::TexParameter::depthTextureMode | ( |  | ) | const`[inline]`

void vl::TexParameter::setMinFilter | ( | ETexParamFilter | minfilter | ) | `[inline]`

void TexParameter::setMagFilter | ( | ETexParamFilter | magfilter | ) |

void vl::TexParameter::setWrapS | ( | ETexParamWrap | texturewrap | ) | `[inline]`

void vl::TexParameter::setWrapT | ( | ETexParamWrap | texturewrap | ) | `[inline]`

void vl::TexParameter::setWrapR | ( | ETexParamWrap | texturewrap | ) | `[inline]`

void vl::TexParameter::setBorderColor | ( | fvec4 | bordercolor | ) | `[inline]`

void vl::TexParameter::setAnisotropy | ( | float | anisotropy | ) | `[inline]`

void vl::TexParameter::setGenerateMipmap | ( | bool | generate_mipmap | ) | `[inline]`

void vl::TexParameter::setTexCompareMode | ( | ETexCompareMode | mode | ) | `[inline]`

void vl::TexParameter::setTexCompareFunc | ( | ETexCompareFunc | func | ) | `[inline]`

void vl::TexParameter::setDepthTextureMode | ( | EDepthTextureMode | mode | ) | `[inline]`

bool vl::TexParameter::dirty | ( |  | ) | const`[inline]`

## Member Data Documentation

ETexParamFilter vl::TexParameter::mMinFilter`[protected]`

ETexParamFilter vl::TexParameter::mMagfilter`[protected]`

ETexParamWrap vl::TexParameter::mWrapS`[protected]`

ETexParamWrap vl::TexParameter::mWrapT`[protected]`

ETexParamWrap vl::TexParameter::mWrapR`[protected]`

ETexCompareMode vl::TexParameter::mCompareMode`[protected]`

ETexCompareFunc vl::TexParameter::mCompareFunc`[protected]`

EDepthTextureMode vl::TexParameter::mDepthTextureMode`[protected]`

fvec4 vl::TexParameter::mBorderColor`[protected]`

float vl::TexParameter::mAnisotropy`[protected]`

bool vl::TexParameter::mGenerateMipmap`[protected]`

bool vl::TexParameter::mDirty`[protected]`

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

- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Texture.hpp
- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Shader.cpp

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Sun Nov 8 14:29:08 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.