OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
additivelayer.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_ADDITIVELAYER
2 #define OPENMW_COMPONENTS_MYGUIPLATFORM_ADDITIVELAYER
3 
4 #include <MyGUI_OverlappedLayer.h>
5 
6 #include <osg/ref_ptr>
7 
8 namespace osg
9 {
10  class StateSet;
11 }
12 
13 namespace osgMyGUI
14 {
15 
17  class AdditiveLayer : public MyGUI::OverlappedLayer
18  {
19  public:
20  MYGUI_RTTI_DERIVED( AdditiveLayer )
21 
22  AdditiveLayer();
24 
25  virtual void renderToTarget(MyGUI::IRenderTarget* _target, bool _update);
26 
27  private:
28  osg::ref_ptr<osg::StateSet> mStateSet;
29  };
30 
31 }
32 
33 #endif
A Layer rendering with additive blend mode.
Definition: additivelayer.hpp:17
~AdditiveLayer()
Definition: additivelayer.cpp:17
virtual void renderToTarget(MyGUI::IRenderTarget *_target, bool _update)
Definition: additivelayer.cpp:22
osg::ref_ptr< osg::StateSet > mStateSet
Definition: additivelayer.hpp:28
AdditiveLayer()
Definition: additivelayer.cpp:11