mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-27 03:26:38 +00:00 
			
		
		
		
	/home/elsid/dev/openmw/components/sceneutil/shadow.cpp💯9: warning: Call to virtual function during construction [clang-analyzer-optin.cplusplus.VirtualCall] setupShadowSettings(); ^ /home/elsid/dev/openmw/components/sceneutil/shadow.cpp💯9: note: This constructor of an object of type 'ShadowManager' has not returned when the virtual method was called /home/elsid/dev/openmw/components/sceneutil/shadow.cpp💯9: note: Call to virtual function during construction /home/elsid/dev/openmw/components/sceneutil/shadow.cpp:104:9: warning: Call to virtual function during construction [clang-analyzer-optin.cplusplus.VirtualCall] enableOutdoorMode(); ^ /home/elsid/dev/openmw/components/sceneutil/shadow.cpp:104:9: note: This constructor of an object of type 'ShadowManager' has not returned when the virtual method was called /home/elsid/dev/openmw/components/sceneutil/shadow.cpp:104:9: note: Call to virtual function during construction
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COMPONENTS_SCENEUTIL_SHADOW_H
 | |
| #define COMPONENTS_SCENEUTIL_SHADOW_H
 | |
| 
 | |
| #include <osgShadow/ShadowSettings>
 | |
| #include <osgShadow/ShadowedScene>
 | |
| 
 | |
| #include <components/shader/shadermanager.hpp>
 | |
| 
 | |
| #include "mwshadowtechnique.hpp"
 | |
| 
 | |
| namespace SceneUtil
 | |
| {
 | |
|     class ShadowManager
 | |
|     {
 | |
|     public:
 | |
|         static void disableShadowsForStateSet(osg::ref_ptr<osg::StateSet> stateSet);
 | |
| 
 | |
|         static Shader::ShaderManager::DefineMap getShadowsDisabledDefines();
 | |
| 
 | |
|         ShadowManager(osg::ref_ptr<osg::Group> sceneRoot, osg::ref_ptr<osg::Group> rootNode, unsigned int outdoorShadowCastingMask, unsigned int indoorShadowCastingMask, Shader::ShaderManager &shaderManager);
 | |
| 
 | |
|         void setupShadowSettings();
 | |
| 
 | |
|         Shader::ShaderManager::DefineMap getShadowDefines();
 | |
| 
 | |
|         void enableIndoorMode();
 | |
| 
 | |
|         void enableOutdoorMode();
 | |
|     protected:
 | |
|         bool mEnableShadows;
 | |
| 
 | |
|         osg::ref_ptr<osgShadow::ShadowedScene> mShadowedScene;
 | |
|         osg::ref_ptr<osgShadow::ShadowSettings> mShadowSettings;
 | |
|         osg::ref_ptr<MWShadowTechnique> mShadowTechnique;
 | |
| 
 | |
|         unsigned int mOutdoorShadowCastingMask;
 | |
|         unsigned int mIndoorShadowCastingMask;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif //COMPONENTS_SCENEUTIL_SHADOW_H
 |