13#ifndef SO_MLSAMPLER2_D_H
14#define SO_MLSAMPLER2_D_H
19#include "SoShaderSystem.h"
21#include <Inventor/SbLinear.h>
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.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.