Previous 199869 Revisions Next

r40577 Wednesday 2nd September, 2015 at 12:47:56 UTC by Andrew Gardner
Renamed "polyNew" to "poly" in midzeus2. (nw)
[src/mame/video]midzeus2.c

trunk/src/mame/video/midzeus2.c
r249088r249089
9090 *
9191 *************************************/
9292
93static midzeus2_renderer* polyNew;
93static midzeus2_renderer* poly;
9494static UINT8 log_fifo;
9595
9696static UINT32 zeus_fifo[20];
r249088r249089
283283   waveram[1] = auto_alloc_array(machine(), UINT32, WAVERAM1_WIDTH * WAVERAM1_HEIGHT * 12/4);
284284
285285   /* initialize polygon engine */
286    polyNew = auto_alloc(machine(), midzeus2_renderer(*this));
286    poly = auto_alloc(machine(), midzeus2_renderer(*this));
287287   
288288   /* we need to cleanup on exit */
289289   machine().add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(midzeus2_state::exit_handler2), this));
r249088r249089
374374{
375375   int x, y;
376376
377    polyNew->wait();
377    poly->wait();
378378   
379379if (machine().input().code_pressed(KEYCODE_UP)) { zbase += 1.0f; popmessage("Zbase = %f", (double) zbase); }
380380if (machine().input().code_pressed(KEYCODE_DOWN)) { zbase -= 1.0f; popmessage("Zbase = %f", (double) zbase); }
r249088r249089
10311031                  break;
10321032
10331033               case 0x38:  /* crusnexo/thegrid */
1034                  polyNew->zeus2_draw_quad(databuffer, texoffs, logit);
1034                  poly->zeus2_draw_quad(databuffer, texoffs, logit);
10351035                  break;
10361036
10371037               default:
r249088r249089
11991199      }
12001200   }
12011201
1202   numverts = polyNew->zclip_if_less(4, &vert[0], &clipvert[0], 4, 1.0f / 512.0f / 4.0f);
1202   numverts = poly->zclip_if_less(4, &vert[0], &clipvert[0], 4, 1.0f / 512.0f / 4.0f);
12031203   if (numverts < 3)
12041204      return;
12051205
r249088r249089
12301230         clipvert[i].y += 0.0005f;
12311231   }
12321232
1233    mz2_poly_extra_data& extra = polyNew->object_data_alloc();
1233    mz2_poly_extra_data& extra = poly->object_data_alloc();
12341234   switch (texmode)
12351235   {
12361236      case 0x01d:     /* crusnexo: RHS of score bar */


Previous 199869 Revisions Next


© 1997-2024 The MAME Team