16 #ifndef SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H 17 #define SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H 47 virtual void set(
const std::shared_ptr<T>& value);
50 virtual const std::shared_ptr<T>&
get()
const;
137 #endif // SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H Definition: DriveElementFromInputBehavior.cpp:27
osg::ref_ptr< osg::StateSet > m_stateset
Definition: OsgTextureUniform.h:64
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:104
OSG implementation of a Cube Map Texture.
Definition: OsgTextureCubeMap.h:37
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
std::shared_ptr< T > m_texture
Texture.
Definition: OsgTextureUniform.h:62
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:92
OSG implementation of a 3D Texture.
Definition: OsgTexture3d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:128
virtual void removeFromStateSet(osg::StateSet *stateSet)
Removes this uniform from the OSG state set.
Definition: OsgTextureUniform-inl.h:97
OsgTextureUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform-inl.h:35
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:106
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:64
ptrdiff_t m_unit
Texture unit.
Definition: OsgTextureUniform.h:67
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:80
OSG implementation of a 1D Texture.
Definition: OsgTexture1d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:116
OSG implementation of a 2D Texture.
Definition: OsgTexture2d.h:42
size_t m_minimumTextureUnit
The smallest unit to be used.
Definition: OsgTextureUniform.h:70
size_t getMinimumTextureUnit() const
Definition: OsgTextureUniform-inl.h:113