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 | 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:
vl::Object

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:

Definition at line 62 of file Texture.hpp.


Constructor & Destructor Documentation

TexParameter::TexParameter (  )

Member Function Documentation

void TexParameter::apply ( ETextureDimension  dimension,
OpenGLContext gl 
) const
ETexParamFilter vl::TexParameter::minFilter (  ) const [inline]

Definition at line 72 of file Texture.hpp.

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

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

Definition at line 73 of file Texture.hpp.

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

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

Definition at line 74 of file Texture.hpp.

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

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

Definition at line 75 of file Texture.hpp.

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

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

Definition at line 76 of file Texture.hpp.

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

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

Definition at line 77 of file Texture.hpp.

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

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

Definition at line 78 of file Texture.hpp.

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

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

Definition at line 79 of file Texture.hpp.

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

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

Definition at line 80 of file Texture.hpp.

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

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

Definition at line 81 of file Texture.hpp.

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

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

Definition at line 82 of file Texture.hpp.

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

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::setCompareMode ( ETexCompareMode  mode ) [inline]
void vl::TexParameter::setCompareFunc ( ETexCompareFunc  func ) [inline]
void vl::TexParameter::setDepthTextureMode ( EDepthTextureMode  mode ) [inline]
void vl::TexParameter::setDirty ( bool  dirty ) const [inline]

Definition at line 96 of file Texture.hpp.

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

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

Definition at line 98 of file Texture.hpp.


Friends And Related Function Documentation

friend class Texture [friend]

Definition at line 65 of file Texture.hpp.


Member Data Documentation

Definition at line 101 of file Texture.hpp.

Definition at line 102 of file Texture.hpp.

Referenced by setMagFilter().

Definition at line 103 of file Texture.hpp.

Definition at line 104 of file Texture.hpp.

Definition at line 105 of file Texture.hpp.

Definition at line 106 of file Texture.hpp.

Definition at line 107 of file Texture.hpp.

Definition at line 108 of file Texture.hpp.

Definition at line 109 of file Texture.hpp.

float vl::TexParameter::mAnisotropy [protected]

Definition at line 110 of file Texture.hpp.

Definition at line 111 of file Texture.hpp.

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

Definition at line 113 of file Texture.hpp.

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


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

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