Added osgSim::OverlayNode to osganimate and osgspheresegment examples, and

added support for setting texture size hint and coping with scene graphs
with CoordinateSystemNode in them.
This commit is contained in:
Robert Osfield
2005-09-06 15:48:18 +00:00
parent db24ea247c
commit 5283c11f8a
5 changed files with 135 additions and 48 deletions

View File

@@ -53,6 +53,11 @@ class OSGSIM_EXPORT OverlayNode : public osg::Group
/** Get the texture unit that the texture should be assigned to.*/
unsigned int getOverlayTextureUnit() const { return _textureUnit; }
/** Set the texture size hint. The size hint is used to request a texture of specified size.*/
void setOverlayTextureSizeHint(unsigned int size);
/** Get the texture size hint.*/
unsigned int getOverlayTextureSizeHint() const { return _textureSizeHint; }
protected :
@@ -77,7 +82,8 @@ class OSGSIM_EXPORT OverlayNode : public osg::Group
// texture to render to, and to read from.
unsigned int _textureUnit;
osg::ref_ptr<osg::Texture> _texture;
unsigned int _textureSizeHint;
osg::ref_ptr<osg::Texture2D> _texture;
};