void fgPlanetsInit( void )
{
- struct fgLIGHT *l;
+ fgLIGHT *l;
int i;
struct CelestialCoord pltPos;
double magnitude;
/* $Log$
-/* Revision 1.3 1998/04/25 22:06:25 curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4 1998/04/26 05:10:01 curt
+/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
/*
+ * Revision 1.3 1998/04/25 22:06:25 curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
* Revision 1.2 1998/04/24 00:45:02 curt
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
* Fixed a bug when generating sky colors.
/* (Re)calculate the sky colors at each vertex */
void fgSkyColorsInit( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
float sun_angle, diff;
float outer_param[3], outer_amt[3], outer_diff[3];
float middle_param[3], middle_amt[3], middle_diff[3];
/* Draw the Sky */
void fgSkyRender( void ) {
fgFLIGHT *f;
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgVIEW *v;
float /* inner_color[4], middle_color[4], diff, */ east_dot, dot, angle;
int i;
/* $Log$
-/* Revision 1.3 1998/04/25 22:06:25 curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4 1998/04/26 05:10:01 curt
+/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
/*
+ * Revision 1.3 1998/04/25 22:06:25 curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
* Revision 1.2 1998/04/24 00:45:03 curt
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
* Fixed a bug when generating sky colors.
void fgStarsRender( void ) {
fgFLIGHT *f;
struct fgVIEW *v;
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgTIME *t;
int i;
/* $Log$
-/* Revision 1.3 1998/04/25 22:06:26 curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4 1998/04/26 05:10:02 curt
+/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
/*
+ * Revision 1.3 1998/04/25 22:06:26 curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
* Revision 1.2 1998/04/24 00:45:03 curt
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
* Fixed a bug when generating sky colors.
/* Initialize the Sun */
void fgSunInit( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgTIME *t;
struct fgVIEW *v;
float xSun, ySun, zSun;
/* $Log$
-/* Revision 1.3 1998/04/25 22:06:26 curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4 1998/04/26 05:10:02 curt
+/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
/*
+ * Revision 1.3 1998/04/25 22:06:26 curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
* Revision 1.2 1998/04/24 00:45:04 curt
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
* Fixed a bug when generating sky colors.
// fgInitVisuals() -- Initialize various GL/view parameters
static void fgInitVisuals( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgWEATHER *w;
l = &cur_light_params;
// Update the view volume, position, and orientation
static void fgUpdateViewParams( void ) {
fgFLIGHT *f;
- struct fgLIGHT *l;
+ fgLIGHT *l;
// struct fgTIME *t;
struct fgVIEW *v;
// Update all Visuals (redraws anything graphics related)
static void fgRenderFrame( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
fgOPTIONS *o;
struct fgTIME *t;
struct fgVIEW *v;
// $Log$
+// Revision 1.7 1998/04/26 05:10:02 curt
+// "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+//
// Revision 1.6 1998/04/25 22:06:30 curt
// Edited cvs log messages in source files ... bad bad bad!
//
double cur_elev;
fgFLIGHT *f;
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgTIME *t;
struct fgVIEW *v;
// $Log$
+// Revision 1.6 1998/04/26 05:10:03 curt
+// "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+//
// Revision 1.5 1998/04/25 22:06:30 curt
// Edited cvs log messages in source files ... bad bad bad!
//
LOCAL[2][3] = 0.0;
LOCAL[3][0] = LOCAL[3][1] = LOCAL[3][2] = LOCAL[3][3] = 0.0;
LOCAL[3][3] = 1.0;
- printf("LaRCsim LOCAL matrix\n");
- MAT3print(LOCAL, stdout);
+ // printf("LaRCsim LOCAL matrix\n");
+ // MAT3print(LOCAL, stdout);
#ifdef OLD_LOCAL_TO_BODY_CODE
// old code to calculate LOCAL matrix calculated from Phi,
/* printf("Yaw matrix\n");
MAT3print(TMP, stdout); */
MAT3mult(LOCAL, R, TMP);
- printf("FG derived LOCAL matrix\n");
- MAT3print(LOCAL, stdout);
+ // printf("FG derived LOCAL matrix\n");
+ // MAT3print(LOCAL, stdout);
#endif // OLD_LOCAL_TO_BODY_CODE
// Derive the local UP transformation matrix based on *geodetic*
// $Log$
+// Revision 1.5 1998/04/26 05:10:04 curt
+// "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+//
// Revision 1.4 1998/04/25 22:04:53 curt
// Use already calculated LaRCsim values to create the roll/pitch/yaw
// transformation matrix (we call it LOCAL)
| Todo
--------------------------------------------------------------------------
+4/25/98 - Physically check if airport list overruns array size when loading.
+
+4/25/98 - Do a better job of translating scenery tiles towards (0,0,0)
+
4/25/98 - Roll all of Time/sunpos.cxx into Astro/sun.cxx
4/25/98 - Overhaul view parameter generation ... see if we can piggy
// update lighting parameters based on current sun position
void fgLightUpdate( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgTIME *t;
struct fgVIEW *v;
/* if the 4th field is 0.0, this specifies a direction ... */
// $Log$
+// Revision 1.3 1998/04/26 05:10:04 curt
+// "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+//
// Revision 1.2 1998/04/24 00:52:30 curt
// Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
// Fog color fixes.
// update the cur_time_params structure with the current sun position
void fgUpdateSunPos( void ) {
- struct fgLIGHT *l;
+ fgLIGHT *l;
struct fgTIME *t;
struct fgVIEW *v;
MAT3vec nup, nsun, v0;
// $Log$
+// Revision 1.5 1998/04/26 05:10:05 curt
+// "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+//
// Revision 1.4 1998/04/25 22:06:34 curt
// Edited cvs log messages in source files ... bad bad bad!
//