Re: [Flightgear-devel] Definition of "toOsg"

2011-07-04 Thread castle
He, he Now it makes more sense. Thanks guys John On Mon, 4 Jul 2011 09:57:32 -0600, Ron Jensen wrote: > On Monda 04 July 2011 08:38:26 John Wojnaroski wrote: >> toOsg > > Converts SG Vectors to OSG Vectors > > simgear/simgear/math/SGVec2.hxx > simgear/simgear/math/SGVec3.hxx > simgear/simgear/m

Re: [Flightgear-devel] Definition of "toOsg"

2011-07-04 Thread Ron Jensen
On Monday 04 July 2011 08:38:26 John Wojnaroski wrote: > toOsg Converts SG Vectors to OSG Vectors simgear/simgear/math/SGVec2.hxx simgear/simgear/math/SGVec3.hxx simgear/simgear/math/SGVec4.hxx toOsg(const SGVec2d& v) { return osg::Vec2d(v[0], v[1]); } -- toOsg(const SGVec2f& v) { return osg::V

Re: [Flightgear-devel] Definition of "toOsg"

2011-07-04 Thread Mathias Fröhlich
Hi, On Monday, July 04, 2011 16:38:26 John Wojnaroski wrote: > HI, > > Have been digging into the source trying to better understand the > structure of the FG lighting system and constructs. > > Keep coming across this function "toOsg" as in > bb.expandBy(toOsg(_lights[i].position)); > or > fo

[Flightgear-devel] Definition of "toOsg"

2011-07-04 Thread John Wojnaroski
HI, Have been digging into the source trying to better understand the structure of the FG lighting system and constructs. Keep coming across this function "toOsg" as in bb.expandBy(toOsg(_lights[i].position)); or fog->setColor(toOsg(fogColor)); and light->setDiffuse(toOsg(l->scene_diffuse()));