]> git.mxchange.org Git - flightgear.git/commitdiff
Debugging output tweaks.
authorcurt <curt>
Mon, 23 Mar 1998 21:23:05 +0000 (21:23 +0000)
committercurt <curt>
Mon, 23 Mar 1998 21:23:05 +0000 (21:23 +0000)
Scenery/scenery.c
Scenery/tilemgr.c

index fa1e81d4de5f982c379b002643fc8d20955c781b..dabedf42db1f947ee1a3257509fbf4efac355ca1 100644 (file)
@@ -75,8 +75,6 @@ int fgSceneryInit( void ) {
        return(0);
     } 
 
-    /* xglTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, height, width, 0,
-                 GL_LUMINANCE, GL_UNSIGNED_BYTE, texbuf); */
     xglTexImage2D(GL_TEXTURE_2D, 0, 3, height, width, 0,
                  GL_RGB, GL_UNSIGNED_BYTE, texbuf);
 
@@ -114,9 +112,12 @@ void fgSceneryRender( void ) {
 
 
 /* $Log$
-/* Revision 1.36  1998/03/14 00:30:50  curt
-/* Beginning initial terrain texturing experiments.
+/* Revision 1.37  1998/03/23 21:23:05  curt
+/* Debugging output tweaks.
 /*
+ * Revision 1.36  1998/03/14 00:30:50  curt
+ * Beginning initial terrain texturing experiments.
+ *
  * Revision 1.35  1998/01/31 00:43:26  curt
  * Added MetroWorks patches from Carmen Volpe.
  *
index 0097634324c8b218fa44c764eba21e5ec74a1379..c085af8c9db82eb75d7f257fc5b1caaf1fb97d90 100644 (file)
@@ -193,7 +193,9 @@ void fgTileMgrRender( void ) {
     index = fgTileCacheExists(&p);
     fgTileCacheEntryInfo(index, &display_list, &scenery.next_center );
 
-    printf("Current bucket = %d %d %d %d\n", p.lon, p.lat, p.x, p.y );
+    printf("Pos = (%.2f, %.2f) Current bucket = %d %d %d %d  Index = %ld\n", 
+          FG_Longitude * RAD_TO_DEG, FG_Latitude * RAD_TO_DEG,
+          p.lon, p.lat, p.x, p.y, fgBucketGenIndex(&p) );
 
     for ( i = 0; i < FG_LOCAL_X_Y; i++ ) {
        index = tiles[i];
@@ -215,9 +217,12 @@ void fgTileMgrRender( void ) {
 
 
 /* $Log$
-/* Revision 1.20  1998/03/14 00:30:51  curt
-/* Beginning initial terrain texturing experiments.
+/* Revision 1.21  1998/03/23 21:23:05  curt
+/* Debugging output tweaks.
 /*
+ * Revision 1.20  1998/03/14 00:30:51  curt
+ * Beginning initial terrain texturing experiments.
+ *
  * Revision 1.19  1998/02/20 00:16:25  curt
  * Thursday's tweaks.
  *