-----------------------------------------------------------------------------
| 57 | |
| 58 | //----------------------------------------------------------------------------- |
| 59 | AutoParamDataSource::AutoParamDataSource() : |
| 60 | mWorldMatrixCount( 0 ), |
| 61 | mWorldMatrixArray( 0 ), |
| 62 | mWorldMatrixDirty( true ), |
| 63 | mViewMatrixDirty( true ), |
| 64 | mProjMatrixDirty( true ), |
| 65 | mWorldViewMatrixDirty( true ), |
| 66 | mViewProjMatrixDirty( true ), |
| 67 | mWorldViewProjMatrixDirty( true ), |
| 68 | mInverseWorldMatrixDirty( true ), |
| 69 | mInverseWorldViewMatrixDirty( true ), |
| 70 | mInverseViewMatrixDirty( true ), |
| 71 | mInverseTransposeWorldMatrixDirty( true ), |
| 72 | mInverseTransposeWorldViewMatrixDirty( true ), |
| 73 | mCameraPositionDirty( true ), |
| 74 | mCameraPositionObjectSpaceDirty( true ), |
| 75 | mPassNumber( 0 ), |
| 76 | mSceneDepthRangeDirty( true ), |
| 77 | mLodCameraPositionDirty( true ), |
| 78 | mLodCameraPositionObjectSpaceDirty( true ), |
| 79 | mCurrentRenderable( 0 ), |
| 80 | mCurrentCamera( 0 ), |
| 81 | mCurrentLightList( 0 ), |
| 82 | mCurrentRenderPassDesc( 0 ), |
| 83 | mCurrentViewport( 0 ), |
| 84 | mCurrentSceneManager( 0 ), |
| 85 | mCurrentPass( 0 ), |
| 86 | mCurrentJob( 0 ), |
| 87 | mCurrentShadowNode( 0 ), |
| 88 | mBlankLight( 0, &mObjectMemoryManager, 0 ) |
| 89 | { |
| 90 | mBlankLight.setDiffuseColour( ColourValue::Black ); |
| 91 | mBlankLight.setSpecularColour( ColourValue::Black ); |
| 92 | mBlankLight.setAttenuation( 0, 1, 0, 0 ); |
| 93 | |
| 94 | mNodeMemoryManager = new NodeMemoryManager(); |
| 95 | mBlankLightNode = OGRE_NEW SceneNode( 0, 0, mNodeMemoryManager, 0 ); |
| 96 | mBlankLightNode->attachObject( &mBlankLight ); |
| 97 | mBlankLightNode->_getDerivedPositionUpdated(); |
| 98 | |
| 99 | for( size_t i = 0; i < OGRE_MAX_SIMULTANEOUS_LIGHTS; ++i ) |
| 100 | { |
| 101 | mTextureViewProjMatrixDirty[i] = true; |
| 102 | mTextureWorldViewProjMatrixDirty[i] = true; |
| 103 | mSpotlightViewProjMatrixDirty[i] = true; |
| 104 | mSpotlightWorldViewProjMatrixDirty[i] = true; |
| 105 | mCurrentTextureProjector[i] = 0; |
| 106 | mShadowCamDepthRangesDirty[i] = false; |
| 107 | } |
| 108 | mNullPssmSplitPoint.resize( 4, Real( 0.0f ) ); |
| 109 | mNullPssmBlendPoint.resize( 2, Real( 0.0f ) ); |
| 110 | } |
| 111 | //----------------------------------------------------------------------------- |
| 112 | AutoParamDataSource::~AutoParamDataSource() |
| 113 | { |
nothing calls this directly
no test coverage detected