Support for insertTargetPass

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
Lax
Hobgoblin
Posts: 583
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 50

Support for insertTargetPass

Post by Lax »

Hi,

would it be possible to introduce a new function "insertTargetPass" in "OgreCompositorNodeDef.h"?
At this time, its only possible to add a pass at the end of the list. But I need to insert a pass at a specifig index, because the pass order is important.

e.g.

Code: Select all

CompositorTargetDef* insertTargetPass( const String &renderTargetName, uint32 insertIndex, uint32 rtIndex=0);
Best regards
Lax

http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5298
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Support for insertTargetPass

Post by dark_sylinc »

I'm afraid that won't be possible, or at least it isn't that easy.

mTargetPasses purposedly does not abide to the rule of 3, which is why calling setNumTargetPass is mandatory.

Allowing to insert in the middle would imply moving passes around, and for that to work requires the classes to abide to the rule of 3.
Post Reply