version 1.1 | | version 1.2 |
---|
| | |
* Bitmap and palette loading functions. | | * Bitmap and palette loading functions. |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 22:05:21 donut | | * Revision 1.2 1999/10/14 04:48:20 donut |
* Initial revision | | * alpha fixes, and gl_font args |
| | * |
| | * Revision 1.1.1.1 1999/06/14 22:05:21 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 2.3 1995/03/14 16:22:04 john | | * Revision 2.3 1995/03/14 16:22:04 john |
* Added cdrom alternate directory stuff. | | * Added cdrom alternate directory stuff. |
| | |
| | |
#include <stdio.h> | | #include <stdio.h> |
#include <stdlib.h> | | #include <stdlib.h> |
| | #include <string.h> |
| | |
#include "types.h" | | #include "types.h" |
#include "inferno.h" | | #include "inferno.h" |
| | |
cfread( Powerup_info, sizeof(powerup_type_info), MAX_POWERUP_TYPES, fp ); | | cfread( Powerup_info, sizeof(powerup_type_info), MAX_POWERUP_TYPES, fp ); |
| | |
cfread( &N_polygon_models, sizeof(int), 1, fp ); | | cfread( &N_polygon_models, sizeof(int), 1, fp ); |
| | |
| | #ifdef __alpha__ |
| | for (i=0; i<N_polygon_models; i++ ) { |
| | cfread( &Polygon_models[i], sizeof(polymodel)-4, 1, fp ); |
| | /* this is a dirty hack */ |
| | memmove ((char *)(&Polygon_models[i].model_data)+4, &Polygon_models[i].model_data, sizeof (polymodel)-12); |
| | } |
| | #else |
cfread( Polygon_models, sizeof(polymodel), N_polygon_models, fp ); | | cfread( Polygon_models, sizeof(polymodel), N_polygon_models, fp ); |
| | #endif |
| | |
for (i=0; i<N_polygon_models; i++ ) { | | for (i=0; i<N_polygon_models; i++ ) { |
Polygon_models[i].model_data = malloc(Polygon_models[i].model_data_size); | | Polygon_models[i].model_data = malloc(Polygon_models[i].model_data_size); |