13#ifndef SO_MLSAMPLER_CUBE_MAP_H
14#define SO_MLSAMPLER_CUBE_MAP_H
21#include <Inventor/SbLinear.h>
65 void setGLTexImage(GLenum target,
const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType,
const GLvoid *textureData)
override;
75 MLuint8 *_textureDataCube[6];
#define INVENTOR_SHADER_API
Define class export specifier.
Sampler node that uses 6 2D ML subimages to define a Cubemap sampler.
SoSFUInt32 startZ
Origin of the 2d slice in Z dimension. Default is 0.
void updateTextureBuffer() override
Calls imageChanged() if _textureBuffer is empty.
void calcSubImgProps(XVImageSize &subImgPosition, XVImageSize &subImgSize) override
Calculate position and size of used sub image by evaluation of fields.
~SoMLSamplerCubeMap() override
Destructor.
void freeTextureBuffer() override
Delete the texture buffer(s)
void getTextureDataFromImage(const XVImageSize &pos, const XVImageSize &size) override
Extract the texture data from the input ML image and store it in the textureData buffer.
SoMLSamplerCubeMap()
Constructor.
SoSFEnum wrapT
Wrapping mode. Default is REPEAT.
static void initClass()
Initialize class with runtime type system.
void uploadTextureBuffer() override
Uploads data stored in _textureDataCube.
void setGLTexImage(GLenum target, const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) override
Set the OpenGL texture.
Abstract base class for sampler nodes that handle ML images.
SoSFMLImage - field interface to ML images and related classes.