Re: [Plib-devel] Sky code from simgear
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@me...> - 2000-08-23 18:55:01
|
Ben Woodhead writes: > I was looking though the simgear code, and I was wondering what has to be > done to just drop the sky code into plib. I haven't seen anything that would > make me think that this would be a problem as of yet. > But its in the todo list, am I missing something. > Later Ben A quick perusal of the sky code shows the following potentially objectionable items: Steve does not want anything relating to STL or namespaces included with plib, so the following dependencies would need to be addressed: #include <iostream> #include <vector> #include <string> <iostream> could probably be fixed by replacing all the cout's with printf()'s. <vector> would require writing a custom list class. <string> could probably be replaced with old style char arrays with the standard libc functions (strcpy, strlen, etc.) #include <simgear/compiler.h> This one is how we abstract out a lot of compiler dependencies (mostly to handle the problem incurred by introducing STL usage such as <vector> and <string>. #include <simgear/constants.h> These could be easily fixed by copying out constants to wherever they are needed. #include <simgear/debug/logstream.hxx> This could be easily fixed by replacing instances of FG_LOG() with printf() ... although it could be somewhat tedious. #include <simgear/math/fg_random.h> This just abstracts out rand() vs. random() ... #include <simgear/math/point3d.hxx> Here we would need to replace all usage of Point3D with sgdvec3 (something which I'd eventually like to do throughout the entire sim/flight/terragear project family.) #include <simgear/math/polar3d.hxx> This is some routines to do polar arithmatic and conversions. #include <simgear/misc/fgpath.hxx> This is the *gear scheme for handling file and directory paths in a platform independent way. #include <simgear/xgl/xgl.h> This could be gotten rid of ... it's from before we were using ssg and doing all our own opengl calls ... anyplace you see xgl**** you can replace it with gl**** Hope this helps, Curt. -- Curtis Olson Human Factors Research Lab Flight Gear Project Twin Cities cu...@hf... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |