[Compositor] Resizing windows

Problems building or running the engine, queries about how to use features etc.
Post Reply
MrMagne
Gnoblar
Posts: 3
Joined: Fri Mar 16, 2012 10:28 am

[Compositor] Resizing windows

Post by MrMagne »

HI,
Following this post (http://www.ogre3d.org/forums/viewtopic.php?f=2&t=52569), I wanted to resize my compositor's textures to the correct width and height of the render window.
The recommended solution is:

Code: Select all

            chain->setCompositorEnabled(i, false);
            chain->setCompositorEnabled(i, true);
but doing so also detaches the RenderTargetListeners associated with the passes of the compositor.

Is it the right way to resize compositors ? How am I supposed to reattach the listeners (there's no way to retrieve the listeners, and at the place of the resize event my code shouldn't be aware of the presence of a compositor's RenderTargetListener) ?
Post Reply