Update of /cvsroot/copter/tools/terraingen
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16727
Modified Files:
terraingen.c
Log Message:
* terraingen.c: Change of naming convention, speed up height field lookup using a row table, add human readable output format, add midpoint subdivision and miscellaneous cleanups.
Index: terraingen.c
===================================================================
RCS file: /cvsroot/copter/tools/terraingen/terraingen.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** terraingen.c 19 May 2000 00:03:32 -0000 1.4
--- terraingen.c 12 Apr 2005 03:59:30 -0000 1.5
***************
*** 1,83 ****
/*
terraingen.c - random terrain generator
! Author: Chong Kai Xiong
Description: This programs randomly generates a heightfield using
! the method of faulting.
! */
[...1343 lines suppressed...]
! dump_help_screen();
! exit(EXIT_FAILURE);
! }
/* create and save heightfield */
! generate_terrain(&terrain, &options);
! if (!terrain)
! {
! /* error creating terrain */
! printf("Unable to create terrain\n");
! exit(EXIT_FAILURE);
}
! /* save to disk */
! terrain_save(terrain, options.output_file);
! terrain_free(terrain);
! exit(EXIT_SUCCESS);
}
|