mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 02:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			625 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			625 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();
 | 
						|
 | 
						|
        void renderToTarget(MyGUI::IRenderTarget* _target, bool _update) final;
 | 
						|
 | 
						|
    private:
 | 
						|
        osg::ref_ptr<osg::StateSet> mStateSet;
 | 
						|
    };
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |