Example #1
0
static SCREEN_UPDATE_IND16(kongambl)
{
	device_t *k056832 = screen.machine().device("k056832");

	bitmap.fill(0, cliprect);
	screen.machine().priority_bitmap.fill(0, cliprect);

//  k056832_tilemap_draw(k056832, bitmap, cliprect, 3, 0, 0);
//  k056832_tilemap_draw(k056832, bitmap, cliprect, 2, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 1, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 0, 0, 0);
	return 0;
}
Example #2
0
static SCREEN_UPDATE_IND16(kongambl)
{
	#if CUSTOM_DRAW
	kongambl_state *state = screen.machine().driver_data<kongambl_state>();
	const gfx_element *gfx = screen.machine().gfx[0];
	UINT32 count;

	count = 0;

	for (int y=0;y<64;y++)
	{
		for (int x=0;x<128;x++)
		{
			UINT32 tile = state->m_vram[count] & 0xffff;

			if(screen.machine().primary_screen->visible_area().contains(x*8, y*8))
				drawgfx_opaque(bitmap,cliprect,gfx,tile,0,0,0,x*8,y*8);

			count++;
		}
	}

	count = 0x8000/4;

	for (int y=0;y<64;y++)
	{
		for (int x=0;x<128;x++)
		{
			UINT32 tile = state->m_vram[count] & 0xffff;

			if(screen.machine().primary_screen->visible_area().contains(x*8, y*8))
				drawgfx_transpen(bitmap,cliprect,gfx,tile,0,0,0,x*8,y*8,0);

			count++;
		}
	}


	#else
	device_t *k056832 = screen.machine().device("k056832");

	bitmap.fill(0, cliprect);
	screen.machine().priority_bitmap.fill(0, cliprect);

	k056832_tilemap_draw(k056832, bitmap, cliprect, 3, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 2, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 1, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 0, 0, 0);
	#endif
	return 0;
}
Example #3
0
UINT32 kongambl_state::screen_update_kongambl(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
	#if CUSTOM_DRAW
	gfx_element *gfx = machine().gfx[0];
	UINT32 count;

	count = 0;

	for (int y=0;y<64;y++)
	{
		for (int x=0;x<128;x++)
		{
			UINT32 tile = m_vram[count] & 0xffff;

			if(machine().primary_screen->visible_area().contains(x*8, y*8))
				drawgfx_opaque(bitmap,cliprect,gfx,tile,0,0,0,x*8,y*8);

			count++;
		}
	}

	count = 0x8000/4;

	for (int y=0;y<64;y++)
	{
		for (int x=0;x<128;x++)
		{
			UINT32 tile = m_vram[count] & 0xffff;

			if(machine().primary_screen->visible_area().contains(x*8, y*8))
				drawgfx_transpen(bitmap,cliprect,gfx,tile,0,0,0,x*8,y*8,0);

			count++;
		}
	}


	#else
	device_t *k056832 = machine().device("k056832");

	bitmap.fill(0, cliprect);
	machine().priority_bitmap.fill(0, cliprect);

	k056832_tilemap_draw(k056832, bitmap, cliprect, 3, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 2, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 1, 0, 0);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 0, 0, 0);
	#endif
	return 0;
}
Example #4
0
UINT32 bishi_state::screen_update_bishi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
	int layers[4], layerpri[4], i;/*, old;*/
/*  int bg_colorbase, new_colorbase, plane, dirty; */
	static const int pris[4] = { K55_PRIINP_0, K55_PRIINP_3, K55_PRIINP_6, K55_PRIINP_7 };
	static const int enables[4] = { K55_INP_VRAM_A, K55_INP_VRAM_B, K55_INP_VRAM_C, K55_INP_VRAM_D };

	k054338_update_all_shadows(m_k054338, 0);
	k054338_fill_backcolor(m_k054338, bitmap, 0);

	for (i = 0; i < 4; i++)
	{
		layers[i] = i;
		layerpri[i] = k055555_read_register(m_k055555, pris[i]);
	}

	konami_sortlayers4(layers, layerpri);

	machine().priority_bitmap.fill(0, cliprect);

	for (i = 0; i < 4; i++)
	{
		if (k055555_read_register(m_k055555, K55_INPUT_ENABLES) & enables[layers[i]])
		{
			k056832_tilemap_draw(m_k056832, bitmap, cliprect, layers[i], 0, 1 << i);
		}
	}
	return 0;
}
Example #5
0
static SCREEN_UPDATE_RGB32( zr107 )
{
	zr107_state *state = screen.machine().driver_data<zr107_state>();
	device_t *k056832 = screen.machine().device("k056832");
	bitmap.fill(screen.machine().pens[0], cliprect);

	k056832_tilemap_draw(k056832, bitmap, cliprect, 1, 0, 0);
	K001005_draw(bitmap, cliprect);
	k056832_tilemap_draw(k056832, bitmap, cliprect, 0, 0, 0);

	draw_7segment_led(bitmap, 3, 3, state->m_led_reg0);
	draw_7segment_led(bitmap, 9, 3, state->m_led_reg1);

	sharc_set_flag_input(screen.machine().device("dsp"), 1, ASSERT_LINE);
	return 0;
}
Example #6
0
UINT32 lethal_state::screen_update_lethalen(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
	bitmap.fill(7168, cliprect);
	machine().priority_bitmap.fill(0, cliprect);

	k056832_tilemap_draw(m_k056832, bitmap, cliprect, 3, K056832_DRAW_FLAG_MIRROR, 1);
	k056832_tilemap_draw(m_k056832, bitmap, cliprect, 2, K056832_DRAW_FLAG_MIRROR, 2);
	k056832_tilemap_draw(m_k056832, bitmap, cliprect, 1, K056832_DRAW_FLAG_MIRROR, 4);

	k053245_sprites_draw_lethal(m_k053244, bitmap, cliprect);

	// force "A" layer over top of everything
	k056832_tilemap_draw(m_k056832, bitmap, cliprect, 0, K056832_DRAW_FLAG_MIRROR, 0);

	return 0;
}