13#ifndef SO_MLSAMPLER2_D_H
14#define SO_MLSAMPLER2_D_H
21#include <Inventor/SbLinear.h>
58 void setGLTexImage(GLenum target,
const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType,
const GLvoid *textureData)
override;
#define INVENTOR_SHADER_API
Define class export specifier.
Sampler node that uses a 2D ML subimage to define a 2D sampler.
void updateTextureWrappingParameters() override
Sets parameters for texture wrapping in OpenGL.
SoSFEnum wrapT
Wrapping mode. Default is REPEAT.
void setGLTexImage(GLenum target, const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) override
Set the OpenGL texture.
void calcSubImgProps(XVImageSize &subImgPosition, XVImageSize &subImgSize) override
Calculate position and size of used sub image by evaluation of fields.
~SoMLSampler2D() override
Destructor.
static void initClass()
Initialize class with runtime type system.
SoMLSampler2D()
Constructor.
SoSFUInt32 startZ
Origin of the 2d slice in Z dimension. Default is 0.
Abstract base class for sampler nodes that handle ML images.
SoSFMLImage - field interface to ML images and related classes.