trunk/src/mame/video/namcona1.c
| r26875 | r26876 | |
| 275 | 275 | |
| 276 | 276 | void namcona1_state::video_start() |
| 277 | 277 | { |
| 278 | | static const tilemap_get_info_delegate get_info[4] = { |
| 279 | | tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info0),this), |
| 280 | | tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info1),this), |
| 281 | | tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info2),this), |
| 282 | | tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info3),this) |
| 283 | | }; |
| 284 | | int i; |
| 285 | | |
| 286 | 278 | m_roz_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcona1_state::roz_get_info),this), TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 287 | 279 | m_roz_palette = -1; |
| 288 | 280 | |
| 289 | | for( i=0; i<NAMCONA1_NUM_TILEMAPS; i++ ) |
| 281 | for( int i=0; i<NAMCONA1_NUM_TILEMAPS; i++ ) |
| 290 | 282 | { |
| 291 | | m_bg_tilemap[i] = &machine().tilemap().create(get_info[i], TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 292 | 283 | m_tilemap_palette_bank[i] = -1; |
| 293 | 284 | } |
| 285 | |
| 286 | m_bg_tilemap[0] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info0),this), TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 287 | m_bg_tilemap[1] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info1),this), TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 288 | m_bg_tilemap[2] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info2),this), TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 289 | m_bg_tilemap[3] = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(namcona1_state::tilemap_get_info3),this), TILEMAP_SCAN_ROWS, 8,8,64,64 ); |
| 294 | 290 | |
| 295 | | m_shaperam = auto_alloc_array(machine(), UINT16, 0x2000*4/2 ); |
| 296 | | m_cgram = auto_alloc_array(machine(), UINT16, 0x1000*0x40/2 ); |
| 291 | m_shaperam = auto_alloc_array_clear(machine(), UINT16, 0x2000*4/2 ); |
| 292 | m_cgram = auto_alloc_array_clear(machine(), UINT16, 0x1000*0x40/2 ); |
| 297 | 293 | |
| 298 | 294 | machine().gfx[0] = auto_alloc( machine(), gfx_element( machine(), cg_layout_8bpp, (UINT8 *)m_cgram, machine().total_colors()/256, 0 )); |
| 299 | 295 | machine().gfx[1] = auto_alloc( machine(), gfx_element( machine(), cg_layout_4bpp, (UINT8 *)m_cgram, machine().total_colors()/16, 0 )); |