1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/components/myguiplatform/additivelayer.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
635 B
C++
Raw Normal View History

2015-11-07 16:45:22 +00:00
#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.
2020-02-13 20:36:56 +00:00
class AdditiveLayer final : public MyGUI::OverlappedLayer
2015-11-07 16:45:22 +00:00
{
public:
2022-09-22 18:26:05 +00:00
MYGUI_RTTI_DERIVED(AdditiveLayer)
2015-11-07 16:45:22 +00:00
AdditiveLayer();
~AdditiveLayer() override;
2015-11-07 16:45:22 +00:00
void renderToTarget(MyGUI::IRenderTarget* _target, bool _update) override;
2015-11-07 16:45:22 +00:00
private:
osg::ref_ptr<osg::StateSet> mStateSet;
};
}
#endif