OSG implementation of a 1D Texture.
More...
#include <SurgSim/Graphics/OsgTexture1d.h>
OSG implementation of a 1D Texture.
Wraps an osg::Texture1d
OsgTexture1d::OsgTexture1d |
( |
| ) |
|
Constructor.
- Postcondition
- No image is loaded in the texture.
osg::ref_ptr<osg::Texture1D> SurgSim::Graphics::OsgTexture1d::getOsgTexture1d |
( |
| ) |
const |
|
inline |
Returns the osg::Texture1D.
void OsgTexture1d::getSize |
( |
int * |
width | ) |
const |
|
virtual |
void OsgTexture1d::setSize |
( |
int |
width | ) |
|
|
virtual |
Sets the size of the texture.
- Parameters
-
width | Width of the texture |
- Note
- Use this to setup a texture as a render target rather than loading from file.
Implements SurgSim::Graphics::Texture1d.
The documentation for this class was generated from the following files: