12SCompositorTarget::SCompositorTarget(
SCompositorTechnique* technique, Ogre::CompositionTargetPass* ogreTargetPassRef,
int targetId) :
SData(
"")
14 ogreCompositorTarget = ogreTargetPassRef;
15 parentTechnique = technique;
16 name = boost::str(boost::format(
"%1%") %targetId);
19 Ogre::CompositionTargetPass::Passes passList = ogreCompositorTarget->getPasses();
20 for (
unsigned int p = 0; p < passList.size(); p++)
23 Ogre::CompositionPass* ogreCompositionPass = passList[p];
27 compositorPassesIndexByName.insert(CompositorPassesIndexByName::value_type(newCompositorPass->
GetName(), compositorPassesByIndex.size()));
28 compositorPassesByIndex.push_back(newCompositorPass);