Hi,

On Thu, 2009-02-12 at 09:06 +0800, Gerrit Voss wrote:
> Hi,
> 
> On Wed, 2009-02-11 at 16:29 -0600, Patrick Hartling wrote:
> > Marcus Lindblom wrote:
> > > Patrick Hartling wrote:
> > >> I have made some big progress in getting PyOpenSG updated to the OpenSG 
> > >> 2.0 trunk, but I have run up against problems related to class templates 
> > >> with static data members. 
> > > 
> > > [snip]
> > > 

> just a little curious, how do you handle this in general. None of the
> FieldMask/FieldId elements has a definition so you actually can't take
> the address of any of them, e.g
> 
>  fprintf(stderr, "%p\n", &Transform::MatrixFieldMask);
> 
> fails as well. 
> 
> So there must be something somewhere that solves this for regular
> classes and before adding definitions to the templates part (as your
> patch does) I would like to have a short look there.
> 

actually looking at an older py_osg checkout you don't seem to take
the address but just the value, e.g.

WindowBase.pypp.cpp: 

  bp::scope().attr("WidthFieldId") =
     (int)OSG::WindowBase::WidthFieldId;


which should be fine as you can't change the value so you don't really
have to have a memory reference for it.

Did this change ?

kind regards,
  gerrit



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to