osgPPU::UnitMipmapInMipmapOut Class Reference

Same as UnitInOut however do bypass also mipmap levels. More...

Inheritance diagram for osgPPU::UnitMipmapInMipmapOut:

osgPPU::UnitInOut osgPPU::Unit

Public Member Functions

 META_Node (osgPPU, UnitMipmapInMipmapOut)
 UnitMipmapInMipmapOut (const UnitMipmapInMipmapOut &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual ~UnitMipmapInMipmapOut ()
 Release it and used memory.
virtual void init ()
 Initialze the Processoring unit.

Protected Member Functions

void checkIOMipmappedData ()
 regenerate io mapmapped data structures
bool noticeBeginRendering (osg::RenderInfo &, const osg::Drawable *)

Protected Attributes

std::vector< osg::ref_ptr
< osg::FrameBufferObject > > 
mIOMipmapFBO
std::vector< osg::ref_ptr
< osg::Viewport > > 
mIOMipmapViewport
std::vector< osg::ref_ptr
< osg::Drawable > > 
mIOMipmapDrawable
osg::ref_ptr< osg::RefMatrix > mProjectionMatrix
osg::ref_ptr< osg::RefMatrix > mModelviewMatrix

Detailed Description

Same as UnitInOut however do bypass also mipmap levels.

The functionality of this unit is similar to the UnitInOut. However this unit is also capable to bypass mipmap levels. This means that the output texture will be switched in a mipmap mode and the input textures are passed levelwise to the output texture.

In order that this unit work correctly the input texture and the output should be of the same dimensions, otherwise non 1:1 matching of mipmap levels is possible.


Member Function Documentation

bool osgPPU::UnitMipmapInMipmapOut::noticeBeginRendering ( osg::RenderInfo &  ,
const osg::Drawable *   
) [protected, virtual]

Here the FBO will be applied, so that Unit can render its output to attached textures. If you overwrite this method in derived class, so you have to take care about FBO handling.

Reimplemented from osgPPU::UnitInOut.


The documentation for this class was generated from the following file:

Back to Homepage of osgPPU

Copyright (C) 2008 by Art Tevs (LGPL)