22#include <Inventor/fields/SoSFUInt32.h>
23#include <Inventor/fields/SoSFEnum.h>
24#include <Inventor/fields/SoSFBool.h>
25#include <Inventor/fields/SoSFVec4f.h>
39 NORMAL_MAP = GL_NORMAL_MAP_EXT,
40 REFLECTION_MAP = GL_REFLECTION_MAP_EXT
47 CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE,
48 CLAMP_TO_BORDER = GL_CLAMP_TO_BORDER,
49 MIRRORED_REPEAT = GL_MIRRORED_REPEAT
56 NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST,
57 NEAREST_MIPMAP_LINEAR = GL_NEAREST_MIPMAP_LINEAR,
58 LINEAR_MIPMAP_NEAREST = GL_LINEAR_MIPMAP_NEAREST,
59 LINEAR_MIPMAP_LINEAR = GL_LINEAR_MIPMAP_LINEAR
#define INVENTOR_SHADER_API
Define class export specifier.
Abstract Open Inventor base class for sampler nodes.
SoSFEnum minFilter
Minification filter mode. Default is LINEAR.
const char * getTextureFormatName(GLenum internalFormat)
Return texture format name.
SoSFBool use16BitFloat
Use 16 Bit floating point for the texture format.
unsigned int _textureComponents
SbBool _hasTextureFloat
TRUE if GL_xxx_texture_float extension is present.
SbString _sizeUniformName
name of the uniform ?_size parameter
GLint getInternalFormat(GLenum glDataType)
Return specialized texture format for GL data type.
Filter
Filter methods for minification and magnification.
void updateParameter(SoUniformParameterBase *uniformBase, SoState *state) override
Assigns or updates the parameter's value.
SoSFBool enableBorder
Enable border to be part of the texture. Default is FALSE.
TexGenMode
Texture gen mode.
void postTextureSizeInfo(GLenum target)
Prints the size of the bound texture.
SoSFEnum wrapS
Wrapping mode. Default is REPEAT.
virtual void nameChanged(SoField *field)
Called when sampler name has changed.
SoSFBool needsTextureCoordinates
Enable this if the sampler needs the standard inventor texture coordinates.
void postTextureFormatInfo(GLenum target, GLint format)
Prints channel depths for given target and format.
SbSamplerInfo::TextureType getTextureTypeFromGLFormat(GLenum internalFormat)
SoSFVec4f borderColor
Border color used to for border texture filtering. Only used if 'enableBorder' is FALSE....
SoSFEnum magFilter
Magnification filter mode. Default is LINEAR.
static void initClass()
Initialize class with runtime type system.
virtual void texConfigChanged(SoField *)
Called when texture configuration (e.g. filter mode) has changed.