UINT32 airbustr_state::screen_update_airbustr(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { m_bg_tilemap->draw(bitmap, cliprect, 0, 0); m_fg_tilemap->draw(bitmap, cliprect, 0, 0); // copy the sprite bitmap to the screen pandora_update(m_pandora, bitmap, cliprect); return 0; }
UINT32 hvyunit_state::screen_update_hvyunit(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { #define SX_POS 96 #define SY_POS 0 m_bg_tilemap->set_scrollx(0, ((m_port0_data & 0x40) << 2) + m_scrollx + SX_POS); // TODO m_bg_tilemap->set_scrolly(0, ((m_port0_data & 0x80) << 1) + m_scrolly + SY_POS); // TODO bitmap.fill(get_black_pen(machine()), cliprect); m_bg_tilemap->draw(bitmap, cliprect, 0, 0); pandora_update(m_pandora, bitmap, cliprect); return 0; }
static SCREEN_UPDATE( hvyunit ) { #define SX_POS 96 #define SY_POS 0 hvyunit_state *state = screen->machine().driver_data<hvyunit_state>(); tilemap_set_scrollx(state->m_bg_tilemap, 0, ((state->m_port0_data & 0x40) << 2) + state->m_scrollx + SX_POS); // TODO tilemap_set_scrolly(state->m_bg_tilemap, 0, ((state->m_port0_data & 0x80) << 1) + state->m_scrolly + SY_POS); // TODO bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine())); tilemap_draw(bitmap, cliprect, state->m_bg_tilemap, 0, 0); pandora_update(state->m_pandora, bitmap, cliprect); return 0; }
static SCREEN_UPDATE_IND16( hvyunit ) { #define SX_POS 96 #define SY_POS 0 hvyunit_state *state = screen.machine().driver_data<hvyunit_state>(); state->m_bg_tilemap->set_scrollx(0, ((state->m_port0_data & 0x40) << 2) + state->m_scrollx + SX_POS); // TODO state->m_bg_tilemap->set_scrolly(0, ((state->m_port0_data & 0x80) << 1) + state->m_scrolly + SY_POS); // TODO bitmap.fill(get_black_pen(screen.machine()), cliprect); state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0); pandora_update(state->m_pandora, bitmap, cliprect); return 0; }
UINT32 sandscrp_state::screen_update_sandscrp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { device_t *pandora = machine().device("pandora"); bitmap.fill(0, cliprect); int i; machine().priority_bitmap.fill(0, cliprect); m_view2_0->kaneko16_prepare(bitmap, cliprect); for ( i = 0; i < 8; i++ ) { m_view2_0->render_tilemap_chip(bitmap,cliprect,i); } // copy sprite bitmap to screen pandora_update(pandora, bitmap, cliprect); return 0; }
UINT32 djboy_state::screen_update_djboy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { /** * xx------ msb x * --x----- msb y * ---x---- flipscreen? * ----xxxx ROM bank */ int scroll; scroll = m_scrollx | ((m_videoreg & 0xc0) << 2); m_background->set_scrollx(0, scroll - 0x391); scroll = m_scrolly | ((m_videoreg & 0x20) << 3); m_background->set_scrolly(0, scroll); m_background->draw(bitmap, cliprect, 0, 0); pandora_update(m_pandora, bitmap, cliprect); return 0; }