Gerrit Voss wrote:
Hi,
On Thu, 2003-11-27 at 00:27, Christoph Fuenfzig wrote:
Hi,
just a short question about configuration of OpenSG for more than 2 aspects.
I have seen that the current configuration uses
OSG_COMPILETIME_NUM_ASPECTS with OSG_NUM_ASPECTS=2
(in OSGConfig.h).
So increasing OSG_NUM_ASPECTS should work.
yes this is the safe way to do it ;-)
Can I also use OSG_RUNTIME_NUM_ASPECTS and set the number of aspects
during runtime
with ThreadManager::the()->setNumAspects(uiNumAspects). When do I have
to call
ThreadManager::the()->setNumAspects(uiNumAspects) ?
I don't know if we ever tried this, but this call must definitely come
before any container is created, hence before OSG::osgInit is called.
If this does not work let me know and I have a look.
Couldn't we make this knowledge (and probably similar knowledge)
explicit by creating at least a FFATAL message in the method
setNumAspects() when somebody uses it after the osgInit? Actually I'd
prefer an ASSERT for that ;)
gerrit
Alex
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users