PagingLandscapeListener usage

zackron

10-01-2006 23:24:16

I havn't used Ogre or PLSM2 in about 6 months. Last week I started working on updating a lot of my old code to the newest version of ogre and PLSM2 plugin. One issue I seem to be having is that the Paging Landscape Listener class that I previously derived from and registered with the addListener() function of PagingLandscapeListenerManager no longer seems to exist. On looking at the PLSM2, it seems that the function has been removed, and some type of deligator method is now being used.

I've tried creating some function and registering them as deligators, but that does not seem to be working either. Can anyone provide some insight as to what the current proper way of using the listener factions currently is, or point me in the direction of a current example that makes use of them?

Thanks!

tuan kuranes

11-01-2006 06:05:04

did you look at plsm2 demo source code ?
New listener mechanism is used there.
Delegates now frees you from having to link statically to plsm2.

zackron

11-01-2006 18:21:08

That would have been too easy! I looked everywhere other than that! Thanks :)