Hello Alberto,

Alberto Luaces wrote:

>It doesn't compile out of the box on 64bit, because of the casts from pointer 
>to 'unsigned int'. Changing those casts to 'unsigned long' works, but it is 
>an ugly hack.
>  
>
I could not come up with a better way to store an object's "identity". 
The actual memory location where a node is stored is about the only 
fixed reference to it.
Perhaps defining a pointer type with

#ifdef <32 bit>
typedef unsigned int pointer;
#elif <64>
typedef unsigned long int pointer;
#endif

and then using the "pointer" type everywhere is a better solution.

Paul

>El Thursday 15 November 2007 18:14:23 Mike Weiblen escribió:
>  
>
>>whups, moved it to
>>
>>http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/osgtoy/trunk/application
>>s/osgdot/
>>
>>-- mew
>>
>>    
>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED] On Behalf
>>>Of Mike Weiblen
>>>Sent: Thursday, November 15, 2007 10:58 AM
>>>To: OpenSceneGraph Users
>>>Subject: Re: [osg-users] osgdot - a tool to generate a
>>>picture ofascenegraph'sstructure
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>On Nov 15, 2007 4:35 PM, Mike Weiblen <[EMAIL PROTECTED]>
>>>>
>>>>wrote:
>>>>        
>>>>
>>>>>Very cool!  Maybe whip up a plugin Writer wrapper around it,
>>>>>permitting
>>>>>
>>>>>        osgconv cow.osg cow.dot
>>>>>
>>>>>Then, what about enabling that osgdb_dot.dll plugin as a
>>>>>          
>>>>>
>>>>Reader as well?
>>>>
>>>>        
>>>>
>>>>>;-O
>>>>>          
>>>>>
>>>>I love the sound of some one volunteering :-D
>>>>        
>>>>
>>>Heh, more than you think: I put the source in the osgToy SVN
>>>for safekeeping and further refinement.  I'm glad to move it
>>>to OSG core SVN later if you wish.
>>>
>>>See
>>>http://osgtoy.svn.sourceforge.net/viewvc/osgtoy/osgtoy/trunk/s
>>>rc/osgToy/
>>>osgdot.cpp
>>>
>>>In the mean time, I'm glad to accept code submissions.  Pls
>>>submit them via the osgToy SourceForge Tracker
>>>http://sourceforge.net/tracker/?group_id=139833
>>>
>>>cheers
>>>-- mew
>>>      
>>>
>
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>osg-users mailing list
>[email protected]
>http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>  
>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to