Go to the documentation of this file.
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
OsgTextureUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform-inl.h:37
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
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
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
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:106
size_t m_minimumTextureUnit
The smallest unit to be used.
Definition: OsgTextureUniform.h:72
Definition: CompoundShapeToGraphics.cpp:29
OSG implementation of a 3D Texture.
Definition: OsgTexture3d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:118
virtual void set(const std::shared_ptr< T > &value)
Sets the value of the uniform.
Definition: OsgTextureUniform-inl.h:50
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:94
size_t getMinimumTextureUnit() const
Definition: OsgTextureUniform-inl.h:127
std::shared_ptr< T > m_texture
Texture.
Definition: OsgTextureUniform.h:64
virtual const std::shared_ptr< T > & get() const
Returns the value of the uniform.
Definition: OsgTextureUniform-inl.h:66
osg::ref_ptr< osg::StateSet > m_stateset
Definition: OsgTextureUniform.h:66
OSG implementation of a Cube Map Texture.
Definition: OsgTextureCubeMap.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:82
OSG implementation of a 1D Texture.
Definition: OsgTexture1d.h:38
OSG implementation of a 2D Texture.
Definition: OsgTexture2d.h:42
OSG implementation of graphics uniform with a texture value.
Definition: OsgTextureUniform.h:30