Ported all the demos and loaders across to use the new multitexturing API.
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user