| 82 | |
| 83 | |
| 84 | LightShadowMap::LightShadowMap( LightInfo *light ) |
| 85 | : mWorldToLightProj( true ), |
| 86 | mLight( light ), |
| 87 | mTexSize( 0 ), |
| 88 | mLastShader( NULL ), |
| 89 | mLastUpdate( 0 ), |
| 90 | mLastCull( 0 ), |
| 91 | mIsViewDependent( false ), |
| 92 | mLastScreenSize( 0.0f ), |
| 93 | mLastPriority( 0.0f ), |
| 94 | mIsDynamic( false ) |
| 95 | { |
| 96 | GFXTextureManager::addEventDelegate( this, &LightShadowMap::_onTextureEvent ); |
| 97 | |
| 98 | mTarget = GFX->allocRenderToTextureTarget(); |
| 99 | smShadowMaps.push_back( this ); |
| 100 | mStaticRefreshTimer = PlatformTimer::create(); |
| 101 | mDynamicRefreshTimer = PlatformTimer::create(); |
| 102 | } |
| 103 | |
| 104 | LightShadowMap::~LightShadowMap() |
| 105 | { |
nothing calls this directly
no test coverage detected