MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / setSceneFlags

Method setSceneFlags

Components/SceneFormat/src/OgreSceneFormatBase.cpp:88–107  ·  view source on GitHub ↗

-----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

86 }
87 //-----------------------------------------------------------------------------------
88 void DefaultSceneFormatListener::setSceneFlags( uint32 sceneFlags, SceneFormatBase *parent )
89 {
90 mSceneFlags = sceneFlags;
91
92 HlmsPbs *hlmsPbs = parent->getPbs();
93 if( hlmsPbs )
94 {
95 ParallaxCorrectedCubemapBase *pccBase = hlmsPbs->getParallaxCorrectedCubemap();
96 if( pccBase && !pccBase->getAutomaticMode() )
97 {
98 OGRE_ASSERT_HIGH( dynamic_cast<ParallaxCorrectedCubemap *>( pccBase ) );
99 mParallaxCorrectedCubemapManual = static_cast<ParallaxCorrectedCubemap *>( pccBase );
100 }
101 else if( pccBase && pccBase->getAutomaticMode() )
102 {
103 OGRE_ASSERT_HIGH( dynamic_cast<ParallaxCorrectedCubemapAuto *>( pccBase ) );
104 mParallaxCorrectedCubemapAuto = static_cast<ParallaxCorrectedCubemapAuto *>( pccBase );
105 }
106 }
107 }
108 //-----------------------------------------------------------------------------------
109 bool DefaultSceneFormatListener::hasNoAttachedObjectsOfType( const SceneNode *sceneNode )
110 {

Callers 1

_exportSceneMethod · 0.80

Calls 2

getPbsMethod · 0.80

Tested by

no test coverage detected