12SCompositorTechnique::SCompositorTechnique(
SCompositor* compositor, Ogre::CompositionTechnique* ogreCompositionTechniqueRef,
int techId) :
SData(
"")
14 ogreCompositorTechnique = ogreCompositionTechniqueRef;
15 parentCompositor = compositor;
16 name = boost::str(boost::format(
"%1%") %techId);
19 Ogre::CompositionTechnique::TargetPasses passList = ogreCompositorTechnique->getTargetPasses();
20 for (
unsigned int p = 0; p < passList.size(); p++)
23 Ogre::CompositionTargetPass* ogreCompositionTargetPass = passList[p];
27 compositorTargetsIndexByName.insert(CompositorTargetsIndexByName::value_type(newCompositorTarget->
GetName(), compositorTargetsByIndex.size()));
28 compositorTargetsByIndex.push_back(newCompositorTarget);