opensurgsim
|
OSG implementation of a 1D Texture. More...
#include <OsgTexture1d.h>
Public Member Functions | |
OsgTexture1d () | |
Constructor. More... | |
virtual void | setSize (int width) |
Sets the size of the texture. More... | |
virtual void | getSize (int *width) const |
Gets the size of the texture. More... | |
osg::ref_ptr< osg::Texture1D > | getOsgTexture1d () const |
Returns the osg::Texture1D. | |
![]() | |
virtual bool | loadImage (const std::string &filePath) |
Loads an image into the texture from a file. More... | |
virtual void | clearImage () |
Removes the image from the texture. | |
osg::ref_ptr< osg::Texture > | getOsgTexture () const |
Returns the osg::Texture1D. | |
![]() | |
virtual | ~Texture () |
Destructor. | |
void | setIsPointSprite (bool value) |
Set point sprite flag on/off. | |
bool | isPointSprite () const |
Get point sprite flag state. | |
Additional Inherited Members | |
![]() | |
OsgTexture (osg::Texture *texture) | |
Constructor. More... | |
OSG implementation of a 1D Texture.
Wraps an osg::Texture1d
OsgTexture1d::OsgTexture1d | ( | ) |
Constructor.
|
virtual |
Gets the size of the texture.
Implements SurgSim::Graphics::Texture1d.
|
virtual |
Sets the size of the texture.
width | Width of the texture |
Implements SurgSim::Graphics::Texture1d.