16 #ifndef SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H 17 #define SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H 47 virtual void set(
const std::shared_ptr<T>& value);
49 virtual void set(
const YAML::Node& node);
52 virtual const std::shared_ptr<T>&
get()
const;
139 #endif // SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H Definition: CompoundShapeToGraphics.cpp:29
size_t getMinimumTextureUnit() const
Definition: OsgTextureUniform-inl.h:127
osg::ref_ptr< osg::StateSet > m_stateset
Definition: OsgTextureUniform.h:66
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:106
OSG implementation of a Cube Map Texture.
Definition: OsgTextureCubeMap.h:38
std::shared_ptr< T > m_texture
Texture.
Definition: OsgTextureUniform.h:64
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:94
OSG implementation of a 3D Texture.
Definition: OsgTexture3d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:130
virtual void removeFromStateSet(osg::StateSet *stateSet)
Removes this uniform from the OSG state set.
Definition: OsgTextureUniform-inl.h:111
OsgTextureUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform-inl.h:37
void setMinimumTextureUnit(size_t unit)
This is the texture unit from where the search for a free texture unit will start.
Definition: OsgTextureUniform-inl.h:120
OSG implementation of graphics uniform with a texture value.
Definition: OsgTextureUniform.h:30
OSG implementation of a Rectangle Texture.
Definition: OsgTextureRectangle.h:40
virtual void addToStateSet(osg::StateSet *stateSet)
Adds this uniform to the OSG state set.
Definition: OsgTextureUniform-inl.h:72
ptrdiff_t m_unit
Texture unit.
Definition: OsgTextureUniform.h:69
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:82
OSG implementation of a 1D Texture.
Definition: OsgTexture1d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:118
OSG implementation of a 2D Texture.
Definition: OsgTexture2d.h:42
size_t m_minimumTextureUnit
The smallest unit to be used.
Definition: OsgTextureUniform.h:72