#include <SoMLSampler.h>

Public Member Functions | |
| virtual void | GLRender (SoGLRenderAction *action) |
| Set ML image properties in state. | |
| virtual void | updateParameter (SoUniformParameterBase *uniformBase, SoState *state) |
| Assigns or updates the parameter's value. | |
Static Public Member Functions | |
| static void | initClass () |
| Initialize class with runtime type system. | |
Public Attributes | |
| SoSFMLImage | image |
| ML image connector. | |
| SoSFUInt32 | startT |
| Origin of the image in T dimension. Default is 0. | |
| SoSFUInt32 | startU |
| Origin of the image in U dimension. Default is 0. | |
Protected Member Functions | |
| SoMLSampler () | |
| Constructor. | |
| virtual | ~SoMLSampler () |
| Destructor. | |
| GLenum | MLToGLDataType (const MLDataType &dType) |
| Return OpenGL data type for given ML data type. Returns GL_NONE for unknown ML data types. | |
| MLuint8 * | loadAndReformatSubImg (XVImageSize pos, XVImageSize size) |
| load ML image and reformat memory to be suitable for OpenGL texturing. | |
| virtual void | texConfigChanged (SoSensor *sensor) |
| Called when texture configuration (e.g. filter mode) has changed. | |
| virtual void | imageChanged ()=0 |
| Called when the ML images has changed. | |
Static Protected Member Functions | |
| static void | imageChangedCB (void *data, SoSensor *sensor) |
Protected Attributes | |
| SbSamplerInfo::TextureType | _internTexFormat |
| Value points to internal texture format. | |
| SbMLImageProperties | _imgProps |
| ML image properties. | |
Definition at line 21 of file SoMLSampler.h.
| SoMLSampler::SoMLSampler | ( | ) | [protected] |
Constructor.
| virtual SoMLSampler::~SoMLSampler | ( | ) | [protected, virtual] |
Destructor.
| virtual void SoMLSampler::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
| virtual void SoMLSampler::imageChanged | ( | ) | [protected, pure virtual] |
Called when the ML images has changed.
Implemented in SoMLSampler1D, SoMLSampler2D, SoMLSampler3D, and SoMLSamplerCubeMap.
| static void SoMLSampler::imageChangedCB | ( | void * | data, | |
| SoSensor * | sensor | |||
| ) | [static, protected] |
| static void SoMLSampler::initClass | ( | ) | [static] |
Initialize class with runtime type system.
Reimplemented from SoSampler.
Reimplemented in SoMLSampler1D, SoMLSampler2D, SoMLSampler3D, and SoMLSamplerCubeMap.
| MLuint8* SoMLSampler::loadAndReformatSubImg | ( | XVImageSize | pos, | |
| XVImageSize | size | |||
| ) | [protected] |
load ML image and reformat memory to be suitable for OpenGL texturing.
Returns NULL on error, otherwise a pointer to the allocated memory is given.
| GLenum SoMLSampler::MLToGLDataType | ( | const MLDataType & | dType | ) | [protected] |
Return OpenGL data type for given ML data type. Returns GL_NONE for unknown ML data types.
| virtual void SoMLSampler::texConfigChanged | ( | SoSensor * | sensor | ) | [protected, virtual] |
| virtual void SoMLSampler::updateParameter | ( | SoUniformParameterBase * | uniformBase, | |
| SoState * | state | |||
| ) | [virtual] |
Assigns or updates the parameter's value.
Reimplemented from SoSampler.
Reimplemented in SoMLSampler1D, SoMLSampler2D, SoMLSampler3D, and SoMLSamplerCubeMap.
SbMLImageProperties SoMLSampler::_imgProps [protected] |
| SoSFUInt32 SoMLSampler::startT |
| SoSFUInt32 SoMLSampler::startU |
1.5.8