Update of /cvsroot/plib/plib/doc/ssgAux
In directory sc8-pr-cvs1:/tmp/cvs-serv29160/plib/doc/ssgAux
Modified Files:
index.html
Log Message:
Added a note explaining about the problems with 'sun' being a reserved
word under Solaris.
Index: index.html
===================================================================
RCS file: /cvsroot/plib/plib/doc/ssgAux/index.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- index.html 11 Sep 2003 12:03:21 -0000 1.12
+++ index.html 26 Sep 2003 15:01:56 -0000 1.13
@@ -616,6 +616,11 @@
bodies, for example a haloed sun or a textured moon, and methods to add
clouds, stars and planets.
<p>
+<b>WARNING</b> - Solaris C/C++ compilers (from Sun Microsystems Inc) have
+some nasty '#define's for the word 'SUN' and 'sun'. If you are writing
+portable software, you might want to pick an alternative word! PLIB uses 'Sol',
+the formal astronomical name for the star that happens to be our sun.
+<p>
The sky implements various time of day lighting effects, it plays well
with fog and visibility effects, and implements scudded cloud fly-through
effects. Additionally, you can wire in the output of the SimGear
@@ -653,8 +658,8 @@
int nplanets, sgdVec3 *planet_data,
int nstars, sgdVec3 *star_data);
- ssgaCelestialBody* addBody( const char *body_tex_path, const char *halo_tex_path, double size, double dist, bool sun = false );
- ssgaCelestialBody* addBody( ssgSimpleState *orb_state, ssgSimpleState *halo_state, double size, double dist, bool sun = false );
+ ssgaCelestialBody* addBody( const char *body_tex_path, const char *halo_tex_path, double size, double dist, bool sol = false );
+ ssgaCelestialBody* addBody( ssgSimpleState *orb_state, ssgSimpleState *halo_state, double size, double dist, bool sol = false );
ssgaCelestialBody* getBody(int i) { return bodies.get(i); }
int getBodyCount() { return bodies.getNum(); }
@@ -667,7 +672,7 @@
bool reposition( sgVec3 view_pos, sgVec3 zero_elev, sgVec3 view_up,
double lon, double lat, double alt, double spin, double gst, double dt );
- bool repaint( sgVec4 sky_color, sgVec4 fog_color, sgVec4 cloud_color, double sun_angle,
+ bool repaint( sgVec4 sky_color, sgVec4 fog_color, sgVec4 cloud_color, double sol_angle,
int nplanets, sgdVec3 *planet_data,
int nstars, sgdVec3 *star_data );
|