# Visualization Library

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

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

Public Member Functions | Protected Attributes | Friends

# 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 ()
void | apply (ETextureDimension dimension, OpenGLContext *gl) const
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 | setCompareMode (ETexCompareMode mode)
void | setCompareFunc (ETexCompareFunc func)
void | setDepthTextureMode (EDepthTextureMode mode)
void | setDirty (bool dirty) const
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

## Friends

class | Texture

## 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 TextureSampler.

See also:
  - Texture::getTexParameter()
  - Texture
  - TextureSampler
  - TexGen
  - TexEnv
  - Shader
  - Effect
  - Actor

Definition at line 62 of file Texture.hpp.

## Constructor & Destructor Documentation

TexParameter::TexParameter | ( | ) |

Definition at line 737 of file Shader.cpp.

References vl::DTM_LUMINANCE, mDirty, setAnisotropy(), setBorderColor(), setCompareFunc(), setCompareMode(), setDepthTextureMode(), setGenerateMipmap(), setMagFilter(), setMinFilter(), setWrapR(), setWrapS(), setWrapT(), vl::TCF_LEQUAL, vl::TCM_NONE, vl::TPF_LINEAR, and vl::TPW_REPEAT.

## Member Function Documentation

void TexParameter::apply | ( | ETextureDimension | dimension,
|  | OpenGLContext * | gl
| ) |  | const

Definition at line 775 of file Shader.cpp.

References anisotropy(), borderColor(), vl::Log::bug(), compareFunc(), compareMode(), depthTextureMode(), generateMipmap(), vl::Has_GL_GENERATE_MIPMAP, vl::Has_GL_Version_1_2, vl::Has_GL_Version_1_3, vl::Has_GL_Version_1_4, vl::Has_GL_Version_3_0, vl::Has_GL_Version_4_0, vl::Has_GLES_Version_1_1, vl::Has_GLES_Version_2_0, vl::Has_Texture_3D, magFilter(), mDirty, minFilter(), vl::TD_TEXTURE_2D_MULTISAMPLE, vl::TD_TEXTURE_2D_MULTISAMPLE_ARRAY, vl::TD_TEXTURE_BUFFER, vl::TD_TEXTURE_RECTANGLE, VL_CHECK_OGL, VL_TRAP, wrapR(), wrapS(), and wrapT().

Referenced by vl::TextureSampler::apply().

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

Definition at line 71 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 72 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 73 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 74 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 75 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 76 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 77 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 78 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 79 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 80 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 81 of file Texture.hpp.

Referenced by apply(), and vl::VLXClassWrapper_TexParameter::exportTexParameter().

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

Definition at line 83 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 753 of file Shader.cpp.

References vl::Log::bug(), mDirty, mMagfilter, vl::TPF_LINEAR, and vl::TPF_NEAREST.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 85 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 86 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 87 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 88 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 89 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 90 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 91 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 92 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 93 of file Texture.hpp.

Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().

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

Definition at line 95 of file Texture.hpp.

Referenced by vl::TextureSampler::apply().

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

Definition at line 97 of file Texture.hpp.

## Friends And Related Function Documentation

friend class Texture`[friend]`

Definition at line 64 of file Texture.hpp.

## Member Data Documentation

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

Definition at line 100 of file Texture.hpp.

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

Definition at line 101 of file Texture.hpp.

Referenced by setMagFilter().

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

Definition at line 102 of file Texture.hpp.

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

Definition at line 103 of file Texture.hpp.

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

Definition at line 104 of file Texture.hpp.

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

Definition at line 105 of file Texture.hpp.

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

Definition at line 106 of file Texture.hpp.

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

Definition at line 107 of file Texture.hpp.

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

Definition at line 108 of file Texture.hpp.

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

Definition at line 109 of file Texture.hpp.

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

Definition at line 110 of file Texture.hpp.

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

Definition at line 112 of file Texture.hpp.

Referenced by apply(), setMagFilter(), and TexParameter().

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

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/Texture.hpp
- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/Shader.cpp

Visualization Library v2011.09.1162 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu Jan 26 2012 00:44:54.
Permission is granted to use this page to write and publish articles regarding Visualization Library.