Hi Gerrit,
OSG_RUNTIME_NUM_ASPECTS works fine with a modified version of
09syncedthreads.cpp
under Windows 2000, ICC 7.1
Just one syntax problem (in the version of 10/1/2003)
void ThreadManager::setNumAspects(UInt32 OSG_CHECK_ARG(uiNumAspects))
the OSG_CHECK_ARG(..) is wrong then.
Thanks again,
Christoph
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.
gerrit
-------------------------------------------------------
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
|
- Re: [Opensg-users] OSG_RUNTIME_NUM_ASPECTS Christoph Fuenfzig
-