Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Wraps the OpenGL function glTexParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml for more information. More...
#include <Texture.hpp>
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... | |
Object & | operator= (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... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () 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 |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Friends | |
class | Texture |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Wraps the OpenGL function glTexParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml for more information.
References
Definition at line 78 of file Texture.hpp.
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.
|
inline |
Definition at line 94 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
void TexParameter::apply | ( | ETextureDimension | dimension, |
OpenGLContext * | gl | ||
) | const |
Definition at line 776 of file Shader.cpp.
References vl::Log::bug(), 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, vl::TD_TEXTURE_2D_MULTISAMPLE, vl::TD_TEXTURE_2D_MULTISAMPLE_ARRAY, vl::TD_TEXTURE_BUFFER, vl::TD_TEXTURE_RECTANGLE, VL_CHECK_OGL, and VL_TRAP.
|
inline |
Definition at line 93 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 97 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 96 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 98 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 115 of file Texture.hpp.
|
inline |
Definition at line 95 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 89 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 88 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 107 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), and vl::Terrain::init().
|
inline |
Definition at line 106 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), and vl::VectorGraphics::popScissor().
|
inline |
Definition at line 110 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().
|
inline |
Definition at line 109 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().
|
inline |
Definition at line 111 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().
|
inline |
Definition at line 113 of file Texture.hpp.
|
inline |
Definition at line 108 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter().
void TexParameter::setMagFilter | ( | ETexParamFilter | magfilter | ) |
Definition at line 754 of file Shader.cpp.
References vl::Log::bug(), vl::TPF_LINEAR, and vl::TPF_NEAREST.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), vl::Terrain::init(), vl::ObjLoader::loadOBJ(), and vl::VectorGraphics::popScissor().
|
inline |
Definition at line 100 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), vl::Terrain::init(), vl::ObjLoader::loadOBJ(), and vl::VectorGraphics::popScissor().
|
inline |
Definition at line 102 of file Texture.hpp.
|
inline |
Definition at line 105 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), and vl::load3DS().
|
inline |
Definition at line 103 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), vl::Terrain::init(), vl::load3DS(), and vl::VectorGraphics::popScissor().
|
inline |
Definition at line 104 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::importTexParameter(), vl::Terrain::init(), vl::load3DS(), and vl::VectorGraphics::popScissor().
|
inline |
Definition at line 92 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 90 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
inline |
Definition at line 91 of file Texture.hpp.
Referenced by vlX::VLXClassWrapper_TexParameter::exportTexParameter().
|
friend |
Definition at line 81 of file Texture.hpp.
|
protected |
Definition at line 127 of file Texture.hpp.
|
protected |
Definition at line 126 of file Texture.hpp.
|
protected |
Definition at line 124 of file Texture.hpp.
|
protected |
Definition at line 123 of file Texture.hpp.
|
protected |
Definition at line 125 of file Texture.hpp.
|
mutableprotected |
Definition at line 130 of file Texture.hpp.
|
protected |
Definition at line 128 of file Texture.hpp.
|
protected |
Definition at line 119 of file Texture.hpp.
|
protected |
Definition at line 118 of file Texture.hpp.
|
protected |
Definition at line 122 of file Texture.hpp.
|
protected |
Definition at line 120 of file Texture.hpp.
|
protected |
Definition at line 121 of file Texture.hpp.
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:55.
© Copyright Michele Bosi. All rights reserved.