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;
62 virtual const std::string getGlslType()
const;
66 std::shared_ptr<T> m_texture;
68 osg::ref_ptr<osg::StateSet> m_stateset;
74 size_t m_minimumTextureUnit;
141 #endif // SURGSIM_GRAPHICS_OSGTEXTUREUNIFORM_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
size_t getMinimumTextureUnit() const
Definition: OsgTextureUniform-inl.h:127
Definition: MockObjects.h:47
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:108
OSG implementation of a Cube Map Texture.
Definition: OsgTextureCubeMap.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:96
OSG implementation of a 3D Texture.
Definition: OsgTexture3d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:132
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
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:84
OSG implementation of a 1D Texture.
Definition: OsgTexture1d.h:38
OsgUniform(const std::string &name)
Constructor.
Definition: OsgTextureUniform.h:120
OSG implementation of a 2D Texture.
Definition: OsgTexture2d.h:42