Visualization Library v1.0.3A 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>
Wraps the OpenGL function glTexParameter(), see also http://www.opengl.org/sdk/docs/man/xhtml/glTexParameter.xml for more information.
Definition at line 62 of file Texture.hpp.
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.
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 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] |
Definition at line 84 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 86 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setWrapT | ( | ETexParamWrap | texturewrap ) | [inline] |
Definition at line 87 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setWrapR | ( | ETexParamWrap | texturewrap ) | [inline] |
Definition at line 88 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setBorderColor | ( | fvec4 | bordercolor ) | [inline] |
Definition at line 89 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setAnisotropy | ( | float | anisotropy ) | [inline] |
Definition at line 90 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setGenerateMipmap | ( | bool | generate_mipmap ) | [inline] |
Definition at line 91 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setCompareMode | ( | ETexCompareMode | mode ) | [inline] |
Definition at line 92 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setCompareFunc | ( | ETexCompareFunc | func ) | [inline] |
Definition at line 93 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
void vl::TexParameter::setDepthTextureMode | ( | EDepthTextureMode | mode ) | [inline] |
Definition at line 94 of file Texture.hpp.
Referenced by vl::VLXClassWrapper_TexParameter::importTexParameter(), and TexParameter().
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.
friend class Texture [friend] |
Definition at line 65 of file Texture.hpp.
ETexParamFilter vl::TexParameter::mMinFilter [protected] |
Definition at line 101 of file Texture.hpp.
ETexParamFilter vl::TexParameter::mMagfilter [protected] |
Definition at line 102 of file Texture.hpp.
Referenced by setMagFilter().
ETexParamWrap vl::TexParameter::mWrapS [protected] |
Definition at line 103 of file Texture.hpp.
ETexParamWrap vl::TexParameter::mWrapT [protected] |
Definition at line 104 of file Texture.hpp.
ETexParamWrap vl::TexParameter::mWrapR [protected] |
Definition at line 105 of file Texture.hpp.
ETexCompareMode vl::TexParameter::mCompareMode [protected] |
Definition at line 106 of file Texture.hpp.
ETexCompareFunc vl::TexParameter::mCompareFunc [protected] |
Definition at line 107 of file Texture.hpp.
EDepthTextureMode vl::TexParameter::mDepthTextureMode [protected] |
Definition at line 108 of file Texture.hpp.
fvec4 vl::TexParameter::mBorderColor [protected] |
Definition at line 109 of file Texture.hpp.
float vl::TexParameter::mAnisotropy [protected] |
Definition at line 110 of file Texture.hpp.
bool vl::TexParameter::mGenerateMipmap [protected] |
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().