From Brad Christiansen, "I added the ability to set the render target implementaion on the

osgSim::OverlayNode. The attached changes were made against the 2.0
release."
This commit is contained in:
Robert Osfield
2007-08-13 10:17:18 +00:00
parent 856ec41610
commit 4c443bf843
2 changed files with 20 additions and 5 deletions

View File

@@ -51,6 +51,8 @@ class OSGSIM_EXPORT OverlayNode : public osg::Group
void setOverlayTechnique(OverlayTechnique technique);
OverlayTechnique getOverlayTechnique() const { return _overlayTechnique; }
/** Set the implementation to be used when creating the overlay texture. */
void setRenderTargetImplementation(osg::Camera::RenderTargetImplementation impl);
/** Set the overlay subgraph which will be rendered to texture.*/
void setOverlaySubgraph(osg::Node* node);
@@ -155,6 +157,8 @@ class OSGSIM_EXPORT OverlayNode : public osg::Group
bool _continuousUpdate;
double _overlayBaseHeight;
bool _updateCamera;
osg::Camera::RenderTargetImplementation _renderTargetImpl;
private: