16 #ifndef SURGSIM_GRAPHICS_OSGTEXTURE2D_H 17 #define SURGSIM_GRAPHICS_OSGTEXTURE2D_H 22 #include <osg/Texture2D> 25 #include <boost/any.hpp> 30 #pragma warning(disable:4250) 53 virtual void setSize(
int width,
int height);
58 virtual void getSize(
int* width,
int* height)
const;
75 std::shared_ptr<SurgSim::Graphics::OsgTexture2d>
convert(boost::any val);
84 #endif // SURGSIM_GRAPHICS_OSGTEXTURE2D_H Definition: DriveElementFromInputBehavior.cpp:27
osg::ref_ptr< osg::Texture2D > getOsgTexture2d() const
Returns the osg::Texture2D.
Definition: OsgTexture2d.h:61
Base class defining the interface for a 2D Graphics Texture.
Definition: Texture2d.h:30
osg::ref_ptr< osg::Texture > getOsgTexture() const
Returns the osg::Texture1D.
Definition: OsgTexture.h:44
Base class for OSG implementations of Graphics Textures.
Definition: OsgTexture.h:32
OsgTexture2d()
Constructor.
Definition: OsgTexture2d.cpp:20
virtual void setSize(int width, int height)
Sets the size of the texture.
Definition: OsgTexture2d.cpp:24
std::shared_ptr< SurgSim::Graphics::OsgTexture2d > convert(boost::any val)
Template specialization for the convert<> function used in accessible, this one can convert an incomi...
Definition: OsgTexture2d.cpp:45
virtual void getSize(int *width, int *height) const
Gets the size of the texture.
Definition: OsgTexture2d.cpp:29
OSG implementation of a 2D Texture.
Definition: OsgTexture2d.h:42