Page 1 of 1
Hash to identify MovableObject
Posted: Sat Jan 16, 2010 10:28 pm
by st4lk3r87
There are a lot of system that utilize Hash of a string instead of the String directly. Could be this a good suggestion ?
Re: Hash to identify MovableObject
Posted: Sun Jan 17, 2010 12:18 am
by haffax
What exactly do you need?
If it is about SceneManager needing a name for movables, this is no longer the case in Ogre 1.7. (Well internally it still has one, but the need for it will be resolved in one of the next versions (hopefully next

)) For everything in your client app, there is always the pointer to a MovableObject which is itself usable as a hash or can be more efficiently be fed to a hash algorithm, if the raw pointer doesn't suffice.
More context please!

Re: Hash to identify MovableObject
Posted: Sun Jan 17, 2010 7:47 pm
by st4lk3r87
I resolved my problem by use SetUserAny and GetUserAny method
If it is about SceneManager needing a name for movables, this is no longer the case in Ogre 1.7.
I didn't know of this change
