1
0
Fork 0

Debugging output tweaks.

This commit is contained in:
curt 1998-03-23 21:23:05 +00:00
parent 13f4c6f3b8
commit b77c2362c5
2 changed files with 13 additions and 7 deletions

View 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.
*

View 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.
*