Public Member Functions | |
META_Node (osgPPU, UnitMipmapInMipmapOut) | |
UnitMipmapInMipmapOut (const UnitMipmapInMipmapOut &, const osg::CopyOp ©op=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 |
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.
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.
Copyright (C) 2008 by Art Tevs (LGPL)