MCPcopy Create free account
hub / github.com/OGRECave/ogre / setShadowTextureCount

Method setShadowTextureCount

OgreMain/src/OgreTextureShadowRenderer.cpp:995–1012  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

993}
994//---------------------------------------------------------------------
995void 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//---------------------------------------------------------------------
1014void SceneManager::TextureShadowRenderer::setShadowTexturePixelFormat(PixelFormat fmt)
1015{

Callers 9

setupContentMethod · 0.80
setShadowTextureCountFunction · 0.80
DeferredShadingSystemMethod · 0.80
applyShadowTypeMethod · 0.80
DualQuaternion.hFile · 0.80
configureShadowsFunction · 0.80
setupShadowsMethod · 0.80
CharacterSample.hFile · 0.80

Calls 4

sizeMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45
rbeginMethod · 0.45

Tested by 1

setupContentMethod · 0.64