13#ifndef SO_SAMPLER_INFO_ELEMENT_H
14#define SO_SAMPLER_INFO_ELEMENT_H
20#include <Inventor/elements/SoAccumulatedElement.h>
63 typedef SoAccumulatedElement inherited;
70 void init(SoState *state)
override;
79 static void clear(SoState *state, SoNode *node);
85 void push(SoState *state)
override;
#define INVENTOR_SHADER_API
Define class export specifier.
Open Inventor data type and element to store information about a (list of) SbSampler.
int operator==(const SbSamplerInfo &i) const
TextureType type
Texture type.
SbString name
Sampler name.
SbBool valid
Default is invalid.
SbSamplerInfo(const SbString &aName, TextureType aType)
Element stores information about all current sampler nodes.
static void add(SoState *state, SoNode *node, const SbSamplerInfo &info)
Add info about sampler to list.
static void clear(SoState *state, SoNode *node)
Clear list.
void push(SoState *state) override
Override push() method.
static void set(SoState *state, SoNode *node, const SbSamplerInfo &info)
Truncate info list to zero length and set only this info.
static const SbSamplerInfo & get(SoState *state)
Returns last sampler info.
std::list< SbSamplerInfo > _info
sampler info.
static void initClass()
Initialize class with runtime type system.
void init(SoState *state) override
Initialize element.