19#include "SoShaderSystem.h"
22#include <Inventor/fields/SoSFUInt32.h>
23#include <Inventor/fields/SoSFEnum.h>
24#include <Inventor/fields/SoSFBool.h>
25#include <Inventor/fields/SoSFVec4f.h>
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.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.