Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osgUtil::RenderToTextureStage Class Reference

Inheritance diagram for osgUtil::RenderToTextureStage:

osgUtil::RenderStage osgUtil::RenderBin osg::Object osg::Referenced List of all members.

Public Member Functions

 RenderToTextureStage ()
virtual osg::ObjectcloneType () const
virtual osg::Objectclone (const osg::CopyOp &) const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual const char * libraryName () const
virtual const char * className () const
virtual void reset ()
void setTexture (osg::Texture2D *texture)
osg::Texture2DgetTexture ()
void setImage (osg::Image *image)
osg::ImagegetImage ()
void setImageReadPixelFormat (GLenum format)
GLenum getImageReadPixelFormat () const
void setImageReadPixelDataType (GLenum type)
GLenum getImageReadPixelDataType () const
virtual void draw (osg::State &state, RenderLeaf *&previous)

Protected Member Functions

virtual ~RenderToTextureStage ()

Protected Attributes

osg::ref_ptr< osg::Texture2D_texture
osg::ref_ptr< osg::Image_image
GLenum _imageReadPixelFormat
GLenum _imageReadPixelDataType

Detailed Description

RenderStage which copies the final image to an attached texture or image. Generally used as a pre-rendering stage.


Constructor & Destructor Documentation

osgUtil::RenderToTextureStage::RenderToTextureStage  ) 
 

virtual osgUtil::RenderToTextureStage::~RenderToTextureStage  )  [protected, virtual]
 


Member Function Documentation

virtual const char* osgUtil::RenderToTextureStage::className  )  const [inline, virtual]
 

return the name of the object's class type. Must be defined by derived classes.

Reimplemented from osgUtil::RenderStage.

virtual osg::Object* osgUtil::RenderToTextureStage::clone const osg::CopyOp  )  const [inline, virtual]
 

Clone an object, with Object* return type. Must be defined by derived classes.

Reimplemented from osgUtil::RenderStage.

virtual osg::Object* osgUtil::RenderToTextureStage::cloneType  )  const [inline, virtual]
 

Clone the type of an object, with Object* return type. Must be defined by derived classes.

Reimplemented from osgUtil::RenderStage.

virtual void osgUtil::RenderToTextureStage::draw osg::State state,
RenderLeaf *&  previous
[virtual]
 

Reimplemented from osgUtil::RenderStage.

osg::Image* osgUtil::RenderToTextureStage::getImage  )  [inline]
 

GLenum osgUtil::RenderToTextureStage::getImageReadPixelDataType  )  const [inline]
 

GLenum osgUtil::RenderToTextureStage::getImageReadPixelFormat  )  const [inline]
 

osg::Texture2D* osgUtil::RenderToTextureStage::getTexture  )  [inline]
 

virtual bool osgUtil::RenderToTextureStage::isSameKindAs const osg::Object obj  )  const [inline, virtual]
 

Reimplemented from osgUtil::RenderStage.

virtual const char* osgUtil::RenderToTextureStage::libraryName  )  const [inline, virtual]
 

return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.

Reimplemented from osgUtil::RenderBin.

virtual void osgUtil::RenderToTextureStage::reset  )  [virtual]
 

Reimplemented from osgUtil::RenderStage.

void osgUtil::RenderToTextureStage::setImage osg::Image image  )  [inline]
 

void osgUtil::RenderToTextureStage::setImageReadPixelDataType GLenum  type  )  [inline]
 

void osgUtil::RenderToTextureStage::setImageReadPixelFormat GLenum  format  )  [inline]
 

void osgUtil::RenderToTextureStage::setTexture osg::Texture2D texture  )  [inline]
 


Member Data Documentation

osg::ref_ptr<osg::Image> osgUtil::RenderToTextureStage::_image [protected]
 

GLenum osgUtil::RenderToTextureStage::_imageReadPixelDataType [protected]
 

GLenum osgUtil::RenderToTextureStage::_imageReadPixelFormat [protected]
 

osg::ref_ptr<osg::Texture2D> osgUtil::RenderToTextureStage::_texture [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Jun 7 04:50:13 2006 for OpenSceneGraph by  doxygen 1.4.4