mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
34 lines
635 B
C++
34 lines
635 B
C++
#ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_ADDITIVELAYER
|
|
#define OPENMW_COMPONENTS_MYGUIPLATFORM_ADDITIVELAYER
|
|
|
|
#include <MyGUI_OverlappedLayer.h>
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
namespace osg
|
|
{
|
|
class StateSet;
|
|
}
|
|
|
|
namespace osgMyGUI
|
|
{
|
|
|
|
/// @brief A Layer rendering with additive blend mode.
|
|
class AdditiveLayer final : public MyGUI::OverlappedLayer
|
|
{
|
|
public:
|
|
MYGUI_RTTI_DERIVED(AdditiveLayer)
|
|
|
|
AdditiveLayer();
|
|
~AdditiveLayer() override;
|
|
|
|
void renderToTarget(MyGUI::IRenderTarget* _target, bool _update) override;
|
|
|
|
private:
|
|
osg::ref_ptr<osg::StateSet> mStateSet;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|