Implemented basic frame graphic

This commit is contained in:
Robert Osfield
2014-05-30 16:44:36 +00:00
parent 189c0b3477
commit 199506296a
6 changed files with 158 additions and 18 deletions

View File

@@ -74,6 +74,9 @@ void Popup::createGraphicsImplementation()
_transform->addChild( style->createPanel(_extents, dialogBackgroundColor) );
bool requiresFrame = (getFrameSettings() && getFrameSettings()->getShape()!=osgUI::FrameSettings::NO_FRAME);
if (requiresFrame) { _transform->addChild(style->createFrame(_extents, getFrameSettings(), dialogBackgroundColor)); }
style->setupDialogStateSet(getOrCreateStateSet());
style->setupClipStateSet(_extents, getOrCreateStateSet());