ITextSceneNode and setSize

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
asparagusx
Posts: 81
Joined: Thu Oct 16, 2008 6:50 am

ITextSceneNode and setSize

Post 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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can't, that's why 1.5 will have an extra interface for those types of text nodes.
asparagusx
Posts: 81
Joined: Thu Oct 16, 2008 6:50 am

Post by asparagusx »

I included CTextSceneNode.h and then used

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

Anton
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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:
Post Reply