Visualization Library 2.0.0

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 | List of all members
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:

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 setWrap (ETexParamWrap wrap)
 
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
 
- Public Member Functions inherited from vl::Object
 Object ()
 Constructor. More...
 
 Object (const Object &other)
 Copy constructor: copies the name, ref count mutex and user data. More...
 
Objectoperator= (const Object &other)
 Copy operator: copies the object's name, ref count mutex and user data. More...
 
const std::string & objectName () const
 The name of the object, by default set to the object's class name. More...
 
void setObjectName (const char *name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setObjectName (const std::string &name)
 The name of the object, by default set to the object's class name in debug builds. More...
 
void setRefCountMutex (IMutex *mutex)
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () const
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
int referenceCount () const
 Returns the number of references of an object. More...
 
void incReference () const
 Increments the reference count of an object. More...
 
void decReference ()
 Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More...
 
void setAutomaticDelete (bool autodel_on)
 If set to true the Object is deleted when its reference count reaches 0. More...
 
bool automaticDelete () const
 If set to true the Object is deleted when its reference count reaches 0. More...
 
template<class T >
T * as ()
 Casts an Object to the specified class. More...
 
template<class T >
const T * as () const
 Casts an Object to the specified class. More...
 

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
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Friends

class Texture
 

Additional Inherited Members

- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 

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::TexParameter ( )

Definition at line 738 of file Shader.cpp.

References vl::DTM_LUMINANCE, vl::TCF_LEQUAL, vl::TCM_NONE, vl::TPF_LINEAR, and vl::TPW_REPEAT.

Member Function Documentation

◆ anisotropy()

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

Definition at line 78 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ apply()

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

◆ borderColor()

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

Definition at line 77 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ compareFunc()

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

Definition at line 81 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ compareMode()

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

Definition at line 80 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ depthTextureMode()

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

Definition at line 82 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ dirty()

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

Definition at line 99 of file Texture.hpp.

◆ generateMipmap()

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

Definition at line 79 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ magFilter()

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

Definition at line 73 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ minFilter()

ETexParamFilter vl::TexParameter::minFilter ( ) const
inline

Definition at line 72 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ setAnisotropy()

void vl::TexParameter::setAnisotropy ( float  anisotropy)
inline

◆ setBorderColor()

void vl::TexParameter::setBorderColor ( fvec4  bordercolor)
inline

◆ setCompareFunc()

void vl::TexParameter::setCompareFunc ( ETexCompareFunc  func)
inline

Definition at line 94 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().

◆ setCompareMode()

void vl::TexParameter::setCompareMode ( ETexCompareMode  mode)
inline

Definition at line 93 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().

◆ setDepthTextureMode()

void vl::TexParameter::setDepthTextureMode ( EDepthTextureMode  mode)
inline

Definition at line 95 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().

◆ setDirty()

void vl::TexParameter::setDirty ( bool  dirty) const
inline

Definition at line 97 of file Texture.hpp.

◆ setGenerateMipmap()

void vl::TexParameter::setGenerateMipmap ( bool  generate_mipmap)
inline

Definition at line 92 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().

◆ setMagFilter()

void TexParameter::setMagFilter ( ETexParamFilter  magfilter)

◆ setMinFilter()

void vl::TexParameter::setMinFilter ( ETexParamFilter  minfilter)
inline

◆ setWrap()

void vl::TexParameter::setWrap ( ETexParamWrap  wrap)
inline

Definition at line 86 of file Texture.hpp.

◆ setWrapR()

void vl::TexParameter::setWrapR ( ETexParamWrap  texturewrap)
inline

◆ setWrapS()

void vl::TexParameter::setWrapS ( ETexParamWrap  texturewrap)
inline

◆ setWrapT()

void vl::TexParameter::setWrapT ( ETexParamWrap  texturewrap)
inline

◆ wrapR()

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

Definition at line 76 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ wrapS()

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

Definition at line 74 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

◆ wrapT()

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

Definition at line 75 of file Texture.hpp.

Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().

Friends And Related Function Documentation

◆ Texture

friend class Texture
friend

Definition at line 65 of file Texture.hpp.

Member Data Documentation

◆ mAnisotropy

float vl::TexParameter::mAnisotropy
protected

Definition at line 111 of file Texture.hpp.

◆ mBorderColor

fvec4 vl::TexParameter::mBorderColor
protected

Definition at line 110 of file Texture.hpp.

◆ mCompareFunc

ETexCompareFunc vl::TexParameter::mCompareFunc
protected

Definition at line 108 of file Texture.hpp.

◆ mCompareMode

ETexCompareMode vl::TexParameter::mCompareMode
protected

Definition at line 107 of file Texture.hpp.

◆ mDepthTextureMode

EDepthTextureMode vl::TexParameter::mDepthTextureMode
protected

Definition at line 109 of file Texture.hpp.

◆ mDirty

bool vl::TexParameter::mDirty
mutableprotected

Definition at line 114 of file Texture.hpp.

◆ mGenerateMipmap

bool vl::TexParameter::mGenerateMipmap
protected

Definition at line 112 of file Texture.hpp.

◆ mMagfilter

ETexParamFilter vl::TexParameter::mMagfilter
protected

Definition at line 103 of file Texture.hpp.

◆ mMinFilter

ETexParamFilter vl::TexParameter::mMinFilter
protected

Definition at line 102 of file Texture.hpp.

◆ mWrapR

ETexParamWrap vl::TexParameter::mWrapR
protected

Definition at line 106 of file Texture.hpp.

◆ mWrapS

ETexParamWrap vl::TexParameter::mWrapS
protected

Definition at line 104 of file Texture.hpp.

◆ mWrapT

ETexParamWrap vl::TexParameter::mWrapT
protected

Definition at line 105 of file Texture.hpp.


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