Public Member Functions | |
Outline () | |
Constructor. | |
Outline (const Outline ©, const osg::CopyOp &op=osg::CopyOp::SHALLOW_COPY) | |
Copy constructor. | |
META_Effect (osgFX, Outline,"Outline","Stencil buffer based object outline effect.\n""This effect needs a properly setup stencil buffer.","Ulrich Hertlein") | |
void | setWidth (float w) |
Set outline width. | |
float | getWidth () const |
Get outline width. | |
void | setColor (const osg::Vec4 &color) |
Set outline color. | |
const osg::Vec4 & | getColor () const |
Get outline color. | |
Protected Member Functions | |
virtual | ~Outline () |
Destructor. | |
bool | define_techniques () |
Define available techniques. |
osg::DisplaySettings::instance()->setMinimumNumStencilBits(1); camera->setClearMask(clearMask | GL_STENCIL_BUFFER_BIT); camera->setClearStencil(0);
osgFX::Outline::Outline | ( | ) |
Constructor.
osgFX::Outline::Outline | ( | const Outline & | copy, | |
const osg::CopyOp & | op = osg::CopyOp::SHALLOW_COPY | |||
) | [inline] |
virtual osgFX::Outline::~Outline | ( | ) | [inline, protected, virtual] |
Destructor.
osgFX::Outline::META_Effect | ( | osgFX | , | |
Outline | , | |||
"Outline" | , | |||
"Stencil buffer based object outline effect.\n""This effect needs a properly setup stencil buffer." | , | |||
"Ulrich Hertlein" | ||||
) |
void osgFX::Outline::setWidth | ( | float | w | ) |
Set outline width.
float osgFX::Outline::getWidth | ( | ) | const [inline] |
Get outline width.
void osgFX::Outline::setColor | ( | const osg::Vec4 & | color | ) |
Set outline color.
const osg::Vec4& osgFX::Outline::getColor | ( | ) | const [inline] |
Get outline color.
bool osgFX::Outline::define_techniques | ( | ) | [protected, virtual] |