From: Florent Coudret (florent.coudret++at++cstb.fr)
Date: 01/10/2003 05:15:27
Alexandre Naaman a icrit:
>On Wed, 8 Jan 2003, Florent Coudret wrote:
>
>Bonjour Florent,
>
>
>
>>Hello,
>>developing a Qt-Performer based viewer, we're facing an annoying
>>redefinition of 'ulong' between both API:
>>In include\Performer\wintypes.h, we have:
>> typedef unsigned ulong;
>>whereas in Qt\include\qglobal.h, we have:
>> typedef unsigned long ulong;
>>Don't you (SGI gurus...) think the second one should be more correct ?
>>
>>
>
>Yes, I agree. I'll fire off a build with this change and see what happens
>...
>
>Note that within libpf (and libpr), there are only two instances of usage
>of the ulong type (in pfLists.h and pfWindow.h) so ... you could hack
>around this by modifying them and calling our version of ulong something
>slightly different.
>
>
Thanks...
in same way there is an incompatibility of 'ushort' keyword :
Performer / wintypes.h:
#define ushort unsigned short
Qt / qglobal.h:
typedef unsigned short ushort
>
>
>>More generally, do you (or someone else on this mailing-list) have
>>experiences/simple examples of combining Performer with Qt library ?
>>
>>
>>
>
>I've been playing with a MFC example (which presents the same set of
>problems as integrating with Qt) but haven't finished it. Once it gets
>completed I'll be sure to let you know. If in the meanwhile you get
>something running please send it this way! :)
>
>
Portability of our own VR platform/applications (between IRIX, Linux and
Windows systems) has always been one of our major preoccupation...that's
why we've found Qt very interesting/usefull as GUI library....
But for 3D API part, if you want something higher than pure OpenGl code,
we used :
Cosmo3D/Optimiser for IRIX and Windows...(Qt app using csThread for 3D
Viewer part)
Performer for IRIX and Linux...('sproc' or 'pthread' to run Qt main loop)
Now you've just ported Performer on win2000/XP side, since no 'sproc'
nor 'pthread' exist on these system, things seem to be more difficult to
implement without breaking compatibility with other OS...
Qt provides platform-independent threads (QThreads), maybe we could use
it to launch performer loop from...We also need to have access to
Performer shared arena from Qt side...
...I let you know when something will work...
>Thanks for the note,
>
>Alex.
>
>
>
This archive was generated by hypermail 2b29 : Fri Jan 10 2003 - 05:16:08 PST