---------------------------------------------------------------------
| 993 | } |
| 994 | //--------------------------------------------------------------------- |
| 995 | void SceneManager::TextureShadowRenderer::setShadowTextureCount(size_t count) |
| 996 | { |
| 997 | // Change size, any new items will need defaults |
| 998 | if (count != mShadowTextureConfigList.size()) |
| 999 | { |
| 1000 | // if no entries yet, use the defaults |
| 1001 | if (mShadowTextureConfigList.empty()) |
| 1002 | { |
| 1003 | mShadowTextureConfigList.resize(count); |
| 1004 | } |
| 1005 | else |
| 1006 | { |
| 1007 | // create new instances with the same settings as the last item in the list |
| 1008 | mShadowTextureConfigList.resize(count, *mShadowTextureConfigList.rbegin()); |
| 1009 | } |
| 1010 | mShadowTextureConfigDirty = true; |
| 1011 | } |
| 1012 | } |
| 1013 | //--------------------------------------------------------------------- |
| 1014 | void SceneManager::TextureShadowRenderer::setShadowTexturePixelFormat(PixelFormat fmt) |
| 1015 | { |