Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-09-30 Thread Curtis Olson
Hi Jim, I just noticed you added an OSG dependency to strutils.cxx/hxx If possible it would be nice to avoid adding graphics system dependencies to these text manipulation libraries. SimGear and SimGear code is used in a variety of places beyond FlightGear, even in embedded systems where compili

Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-09-30 Thread Curtis Olson
Ok, duh! I see that is a single character function, but there has to be a class function or it can't be too hard to whip up a little function ourselves. Thanks, Curt. On Wed, Sep 30, 2009 at 1:44 PM, Curtis Olson wrote: > Hi Jim, > > I just noticed you added an OSG dependency to strutils.cxx/

Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-09-30 Thread Simon Hollier
Hello, On Wed, Sep 30, 2009 at 2:47 PM, Curtis Olson wrote: > Ok, duh! I see that is a single character function, but there has to be a > class function or it can't be too hard to whip up a little function > ourselves. I don't think there's an STL function, but there is boost::to_lower(str) or

Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-09-30 Thread James Turner
On 30 Sep 2009, at 20:15, Simon Hollier wrote: > I don't think there's an STL function, but there is > boost::to_lower(str) or even something like: > > for (unsigned i=0; i < str.length(); ++i) { >str[i] = tolower(str[i]); > } I already chatted to Tim about this, I'm going to switch to the

Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-10-05 Thread James Turner
On 30 Sep 2009, at 19:44, Curtis Olson wrote: > I just noticed you added an OSG dependency to strutils.cxx/hxx If > possible it would be nice to avoid adding graphics system > dependencies to these text manipulation libraries. SimGear and > SimGear code is used in a variety of places beyo

Re: [Flightgear-devel] [Simgear-cvslogs] CVS: source/simgear/misc strutils.cxx, 1.4, 1.5 strutils.hxx, 1.4, 1.5

2009-10-05 Thread Curtis Olson
Hi Jim, Thanks for the quick fix on the strutils. In this case, (haha, so to speak) yes, I think if code is already referencing OpenGL, then it would be fair to replace that with code that references OSG. And yes, if you can generate png's instead of the 42x larger ppm format, that would be a bi