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

Method resetViewProjMode

OgreMain/src/OgreSceneManager.cpp:3291–3312  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3289 }
3290 //---------------------------------------------------------------------
3291 void SceneManager::resetViewProjMode( bool fixedFunction )
3292 {
3293 if( mResetIdentityView )
3294 {
3295 // Coming back to normal from identity view
3296 if( fixedFunction )
3297 setViewMatrix( mCachedViewMatrix );
3298 mGpuParamsDirty |= (uint16)GPV_GLOBAL;
3299
3300 mResetIdentityView = false;
3301 }
3302
3303 if( mResetIdentityProj )
3304 {
3305 // Coming back from flat projection
3306 if( fixedFunction )
3307 mDestRenderSystem->_setProjectionMatrix( Matrix4::IDENTITY );
3308 mGpuParamsDirty |= (uint16)GPV_GLOBAL;
3309
3310 mResetIdentityProj = false;
3311 }
3312 }
3313 //---------------------------------------------------------------------
3314 void SceneManager::addRenderQueueListener( RenderQueueListener *newListener )
3315 {

Callers

nothing calls this directly

Calls 1

_setProjectionMatrixMethod · 0.45

Tested by

no test coverage detected