From: curt Date: Mon, 23 Mar 1998 21:23:05 +0000 (+0000) Subject: Debugging output tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b77c2362c553007c74d067230bc4acf3150a7f18;p=flightgear.git Debugging output tweaks. --- diff --git a/Scenery/scenery.c b/Scenery/scenery.c index fa1e81d4d..dabedf42d 100644 --- a/Scenery/scenery.c +++ b/Scenery/scenery.c @@ -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. * diff --git a/Scenery/tilemgr.c b/Scenery/tilemgr.c index 009763432..c085af8c9 100644 --- a/Scenery/tilemgr.c +++ b/Scenery/tilemgr.c @@ -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. *