#include <SoSampler.h>

Public Types | |
| enum | TexGenMode { NORMAL_MAP = GL_NORMAL_MAP_EXT, REFLECTION_MAP = GL_REFLECTION_MAP_EXT } |
| Texture gen mode. More... | |
| enum | Wrap { REPEAT = GL_REPEAT, CLAMP = GL_CLAMP, CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE, CLAMP_TO_BORDER = GL_CLAMP_TO_BORDER, MIRRORED_REPEAT = GL_MIRRORED_REPEAT } |
| Texture wrap type. More... | |
| enum | Filter { NEAREST = GL_NEAREST, LINEAR = GL_LINEAR, NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST, NEAREST_MIPMAP_LINEAR = GL_NEAREST_MIPMAP_LINEAR, LINEAR_MIPMAP_NEAREST = GL_LINEAR_MIPMAP_NEAREST, LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR } |
| Filter methods for minification and magnification. More... | |
Public Member Functions | |
| virtual void | updateParameter (SoUniformParameterBase *uniformBase, SoState *state) |
| Assigns or updates the parameter's value. | |
Static Public Member Functions | |
| static void | initClass () |
| Initialize class with runtime type system. | |
Public Attributes | |
| SoSFUInt32 | unit |
| Specifies texture unit identifier (starting with 0). Default is SoTextureUnitElement::getDefault(). | |
| SoSFEnum | wrapS |
| Wrapping mode. Default is REPEAT. | |
| SoSFBool | enableBorder |
| Enable border to be part of the texture. Default is FALSE. | |
| SoSFVec4f | borderColor |
| Border color used to for border texture filtering. Only used if 'enableBorder' is FALSE. Default is (0, 0, 0, 0). | |
| SoSFEnum | minFilter |
| Minification filter mode. Default is LINEAR. | |
| SoSFEnum | magFilter |
| Magnification filter mode. Default is LINEAR. | |
| SoSFBool | use16BitFloat |
| Use 16 Bit floating point for the texture format. | |
Protected Member Functions | |
| virtual | ~SoSampler () |
| SoSampler () | |
| Constructor. | |
| GLint | getInternalFormat (GLenum glDataType) |
| Return specialized texture format for GL data type. | |
| const char * | getTextureFormatName (GLenum internalFormat) |
| Return texture format name. | |
| SbSamplerInfo::TextureType | getTextureTypeFromGLFormat (GLenum internalFormat) |
| virtual void | nameChanged (SoSensor *sensor) |
| Called when sampler name has changed. | |
| virtual void | texConfigChanged (SoSensor *) |
| Called when texture configuration (e.g. filter mode) has changed. | |
Static Protected Member Functions | |
| static void | nameChangedCB (void *data, SoSensor *sensor) |
| static void | texConfigChangedCB (void *data, SoSensor *sensor) |
Protected Attributes | |
| SbBool | _hasTextureFloat |
| TRUE if GL_xxx_texture_float extension is present. | |
| SbString | _sizeUniformName |
| name of the uniform ?_size parameter | |
| unsigned int | _textureComponents |
| GLenum | _textureDataType |
Definition at line 24 of file SoSampler.h.
| enum SoSampler::Filter |
Filter methods for minification and magnification.
| NEAREST | |
| LINEAR | |
| NEAREST_MIPMAP_NEAREST | |
| NEAREST_MIPMAP_LINEAR | |
| LINEAR_MIPMAP_NEAREST | |
| LINEAR_MIPMAP_LINEAR |
Definition at line 48 of file SoSampler.h.
| enum SoSampler::Wrap |
| virtual SoSampler::~SoSampler | ( | ) | [protected, virtual] |
| SoSampler::SoSampler | ( | ) | [protected] |
Constructor.
| GLint SoSampler::getInternalFormat | ( | GLenum | glDataType | ) | [protected] |
Return specialized texture format for GL data type.
| const char* SoSampler::getTextureFormatName | ( | GLenum | internalFormat | ) | [protected] |
Return texture format name.
| SbSamplerInfo::TextureType SoSampler::getTextureTypeFromGLFormat | ( | GLenum | internalFormat | ) | [protected] |
| static void SoSampler::initClass | ( | ) | [static] |
Initialize class with runtime type system.
Reimplemented from SoUniformShaderParameter.
Reimplemented in SoFramebufferSampler, SoFramebufferSampler2D, SoFramebufferSampler3D, SoInheritedFramebufferSampler, SoMLSampler, SoMLSampler1D, SoMLSampler2D, SoMLSampler3D, SoMLSamplerCubeMap, SoMultiPassFramebufferSampler, and SoSampler2D.
| virtual void SoSampler::nameChanged | ( | SoSensor * | sensor | ) | [protected, virtual] |
| static void SoSampler::nameChangedCB | ( | void * | data, | |
| SoSensor * | sensor | |||
| ) | [static, protected] |
| virtual void SoSampler::texConfigChanged | ( | SoSensor * | ) | [inline, protected, virtual] |
Called when texture configuration (e.g. filter mode) has changed.
Reimplemented in SoMLSampler.
Definition at line 119 of file SoSampler.h.
| static void SoSampler::texConfigChangedCB | ( | void * | data, | |
| SoSensor * | sensor | |||
| ) | [static, protected] |
| virtual void SoSampler::updateParameter | ( | SoUniformParameterBase * | uniformBase, | |
| SoState * | state | |||
| ) | [virtual] |
Assigns or updates the parameter's value.
Implements SoUniformShaderParameter.
Reimplemented in SoFramebufferSampler2D, SoFramebufferSampler3D, SoInheritedFramebufferSampler, SoMLSampler, SoMLSampler1D, SoMLSampler2D, SoMLSampler3D, and SoMLSamplerCubeMap.
SbBool SoSampler::_hasTextureFloat [protected] |
SbString SoSampler::_sizeUniformName [protected] |
unsigned int SoSampler::_textureComponents [protected] |
Definition at line 99 of file SoSampler.h.
GLenum SoSampler::_textureDataType [protected] |
Definition at line 101 of file SoSampler.h.
| SoSFVec4f SoSampler::borderColor |
Border color used to for border texture filtering. Only used if 'enableBorder' is FALSE. Default is (0, 0, 0, 0).
Definition at line 67 of file SoSampler.h.
| SoSFBool SoSampler::enableBorder |
Enable border to be part of the texture. Default is FALSE.
Definition at line 64 of file SoSampler.h.
| SoSFEnum SoSampler::magFilter |
| SoSFEnum SoSampler::minFilter |
| SoSFUInt32 SoSampler::unit |
Specifies texture unit identifier (starting with 0). Default is SoTextureUnitElement::getDefault().
Definition at line 58 of file SoSampler.h.
| SoSFBool SoSampler::use16BitFloat |
| SoSFEnum SoSampler::wrapS |
1.5.8