Ported all the demos and loaders across to use the new multitexturing API.

This commit is contained in:
Robert Osfield
2002-07-10 11:22:24 +00:00
parent 46af97727a
commit c1fc3dcdb9
19 changed files with 105 additions and 50 deletions

View File

@@ -12,7 +12,8 @@
namespace osgUtil {
/**
* RenderBin base class.
* RenderStage which copies the final image to an attached texture or image.
* Generally used as a pre-rendering stage.
*/
class OSGUTIL_EXPORT RenderToTextureStage : public RenderStage
{
@@ -33,6 +34,9 @@ class OSGUTIL_EXPORT RenderToTextureStage : public RenderStage
void setTexture(osg::Texture* texture) { _texture = texture; }
osg::Texture* getTexture() { return _texture.get(); }
void setImage(osg::Image* image) { _image = image; }
osg::Image* getImage() { return _image.get(); }
virtual void draw(osg::State& state,RenderLeaf*& previous);
public:
@@ -43,6 +47,7 @@ class OSGUTIL_EXPORT RenderToTextureStage : public RenderStage
virtual ~RenderToTextureStage();
osg::ref_ptr<osg::Texture> _texture;
osg::ref_ptr<osg::Image> _image;
};