Difference for main/polyobj.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 19
 
Line 19
  * Hacked-in polygon objects   * Hacked-in polygon objects
  *    *
  * $Log$   * $Log$
  * Revision 1.1  1999/06/14 22:11:08  donut   * Revision 1.2  2002/03/26 08:20:01  donut
  * Initial revision   * fix briefing spinning robot display in OGL
    *
    * Revision 1.1.1.1  1999/06/14 22:11:08  donut
    * Import of d1x 1.37 source.
  *   *
  * Revision 2.1  1995/05/26  16:10:37  john   * Revision 2.1  1995/05/26  16:10:37  john
  * Support for new 4-byte align v8 pof files.   * Support for new 4-byte align v8 pof files.
Line 139
 
Line 142
 #include "piggy.h"  #include "piggy.h"
 #endif  #endif
   
   #ifdef OGL
   #include "ogl_init.h"
   #endif
   
 polymodel Polygon_models[MAX_POLYGON_MODELS]; // = {&bot11,&bot17,&robot_s2,&robot_b2,&bot11,&bot17,&robot_s2,&robot_b2};  polymodel Polygon_models[MAX_POLYGON_MODELS]; // = {&bot11,&bot17,&robot_s2,&robot_b2,&bot11,&bot17,&robot_s2,&robot_b2};
   
 int N_polygon_models = 0;  int N_polygon_models = 0;
Line 755
 
Line 762
 {  {
  vms_vector temp_pos=ZERO_VECTOR;   vms_vector temp_pos=ZERO_VECTOR;
  vms_matrix temp_orient = IDENTITY_MATRIX;   vms_matrix temp_orient = IDENTITY_MATRIX;
   #ifndef OGL
  grs_canvas *save_canv = grd_curcanv,*temp_canv;   grs_canvas *save_canv = grd_curcanv,*temp_canv;
   #endif
  //int save_light;   //int save_light;
   
  Assert(mn>=0 && mn<N_polygon_models);   Assert(mn>=0 && mn<N_polygon_models);
   
   #ifdef OGL
    ogl_start_offscreen_render(0, 0, grd_curcanv->cv_bitmap.bm_w, grd_curcanv->cv_bitmap.bm_h);
   #else
  temp_canv = gr_create_canvas(save_canv->cv_bitmap.bm_w,save_canv->cv_bitmap.bm_h);   temp_canv = gr_create_canvas(save_canv->cv_bitmap.bm_w,save_canv->cv_bitmap.bm_h);
  gr_set_current_canvas(temp_canv);   gr_set_current_canvas(temp_canv);
   #endif
  gr_clear_canvas( BM_XRGB(0,0,0) );   gr_clear_canvas( BM_XRGB(0,0,0) );
   
  g3_start_frame();   g3_start_frame();
Line 779
 
Line 792
  draw_polygon_model(&temp_pos,&temp_orient,NULL,mn,0,f1_0,NULL,NULL);   draw_polygon_model(&temp_pos,&temp_orient,NULL,mn,0,f1_0,NULL,NULL);
  //Lighting_on = save_light;   //Lighting_on = save_light;
   
    g3_end_frame();
   
   #ifdef OGL
    ogl_end_offscreen_render();
   #else
  gr_set_current_canvas(save_canv);   gr_set_current_canvas(save_canv);
   
  gr_bitmap(0,0,&temp_canv->cv_bitmap);   gr_bitmap(0,0,&temp_canv->cv_bitmap);
   
  gr_free_canvas(temp_canv);   gr_free_canvas(temp_canv);
   #endif
 }  }
   

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2