OSG implementation of a 2D Texture.
More...
#include <SurgSim/Graphics/OsgTexture2d.h>
OSG implementation of a 2D Texture.
Wraps an osg::Texture2d
◆ OsgTexture2d()
OsgTexture2d::OsgTexture2d |
( |
| ) |
|
Constructor.
- Postcondition
- No image is loaded in the texture.
◆ getOsgTexture2d()
osg::ref_ptr<osg::Texture2D> SurgSim::Graphics::OsgTexture2d::getOsgTexture2d |
( |
| ) |
const |
|
inline |
Returns the osg::Texture2D.
◆ getSize()
void OsgTexture2d::getSize |
( |
int * |
width, |
|
|
int * |
height |
|
) |
| const |
|
virtual |
Gets the size of the texture.
- Parameters
-
[out] | width | Width of the texture |
[out] | height | Height of the texture |
Implements SurgSim::Graphics::Texture2d.
◆ setSize()
void OsgTexture2d::setSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
virtual |
Sets the size of the texture.
- Parameters
-
width | Width of the texture |
height | Height of the texture |
- Note
- Use this to setup a texture as a render target rather than loading from file.
Implements SurgSim::Graphics::Texture2d.
The documentation for this class was generated from the following files: