Page 1 of 1

ITextSceneNode and setSize

Posted: Wed Nov 19, 2008 12:28 pm
by asparagusx
Hallo

I create a ITextSceneNode using addBillboardTextSceneNode and I want to change the size of the billboard. How would I go about doing this? I am using 1.4.2. I cast to (IBillboardSceneNode) and try and use setSize but this does not work - any other suggestions?

Thanks

Anton

Posted: Wed Nov 19, 2008 12:41 pm
by hybrid
You can't, that's why 1.5 will have an extra interface for those types of text nodes.

Posted: Wed Nov 19, 2008 1:01 pm
by asparagusx
I included CTextSceneNode.h and then used

(CBillboardTextSceneNode *) and that worked - is that going to be a problem?

Anton

Posted: Wed Nov 19, 2008 1:03 pm
by hybrid
Well, you won't need that in 1.5 anymore, so it would be a good idea to get rid of those includes at that point. If it works now it's ok to use of course :wink: