PALETTE_INIT_MEMBER(m62_state,spelunk2) { const UINT8 *color_prom = memregion("proms")->base(); dynamic_array<rgb_t> rgb; compute_res_net_all(rgb, color_prom, spelunk2_tile_decode_info, m62_tile_net_info); palette.set_pen_colors(0x000, rgb, 0x200); compute_res_net_all(rgb, color_prom, spelunk2_sprite_decode_info, m62_sprite_net_info); palette.set_pen_colors(0x200, rgb, 0x100); m62_amplify_contrast(palette.palette(),0); /* we'll need this at run time */ m_sprite_height_prom = color_prom + 0x700; }
PALETTE_INIT_MEMBER(tagteam_state, tagteam) { const UINT8 *color_prom = memregion("proms")->base(); std::vector<rgb_t> rgb; compute_res_net_all(rgb, color_prom, tagteam_decode_info, tagteam_net_info); palette.set_pen_colors(0x00, rgb); }
void tagteam_state::tagteam_palette(palette_device &palette) const { uint8_t const *const color_prom = memregion("proms")->base(); std::vector<rgb_t> rgb; compute_res_net_all(rgb, color_prom, tagteam_decode_info, tagteam_net_info); palette.set_pen_colors(0x00, rgb); }
void tagteam_state::palette_init() { const UINT8 *color_prom = memregion("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine(), color_prom, &tagteam_decode_info, &tagteam_net_info); palette_set_colors(machine(), 0x00, rgb, 0x20); auto_free(machine(), rgb); }
PALETTE_INIT_MEMBER(carjmbre_state, carjmbre) { const uint8_t *color_prom = memregion("proms")->base(); std::vector<rgb_t> rgb; compute_res_net_all(rgb, color_prom, carjmbre_decode_info, carjmbre_net_info); palette.set_pen_colors(0, rgb); palette.palette()->normalize_range(0, 63); }
PALETTE_INIT_MEMBER(carjmbre_state, carjmbre) { const UINT8 *color_prom = memregion("proms")->base(); dynamic_array<rgb_t> rgb; compute_res_net_all(rgb, color_prom, carjmbre_decode_info, carjmbre_net_info); palette.set_pen_colors(0, rgb, 64); palette.palette()->normalize_range(0, 63); }
PALETTE_INIT_MEMBER(m62_state,spelunk2) { const UINT8 *color_prom = memregion("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine(), color_prom, &spelunk2_tile_decode_info, &m62_tile_net_info); palette_set_colors(machine(), 0x000, rgb, 0x200); auto_free(machine(), rgb); rgb = compute_res_net_all(machine(), color_prom, &spelunk2_sprite_decode_info, &m62_sprite_net_info); palette_set_colors(machine(), 0x200, rgb, 0x100); auto_free(machine(), rgb); m62_amplify_contrast(machine().palette,0); /* we'll need this at run time */ m_sprite_height_prom = color_prom + 0x700; }
PALETTE_INIT_MEMBER(popper_state, popper) { const UINT8 *color_prom = memregion("proms")->base(); std::vector<rgb_t> rgb; compute_res_net_all(rgb, color_prom, popper_decode_info, popper_net_info); palette.set_pen_colors(0, rgb); palette.palette()->normalize_range(0, 63); }
void carjmbre_state::palette_init() { const UINT8 *color_prom = memregion("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine(), color_prom, &carjmbre_decode_info, &carjmbre_net_info); palette_set_colors(machine(), 0, rgb, 64); palette_normalize_range(machine().palette, 0, 63, 0, 255); auto_free(machine(), rgb); }
PALETTE_INIT_MEMBER(popper_state, popper) { const UINT8 *color_prom = memregion("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine(), color_prom, &popper_decode_info, &popper_net_info); palette.set_pen_colors(0, rgb, 64); palette.palette()->normalize_range(0, 63); auto_free(machine(), rgb); }
PALETTE_INIT_MEMBER(m62_state,battroad) { const UINT8 *color_prom = memregion("proms")->base(); dynamic_array<rgb_t> rgb; // m62 palette compute_res_net_all(rgb, color_prom, m62_tile_decode_info, m62_tile_net_info); palette.set_pen_colors(0x000, rgb, 0x100); compute_res_net_all(rgb, color_prom, m62_sprite_decode_info, m62_sprite_net_info); palette.set_pen_colors(0x100, rgb, 0x100); m62_amplify_contrast(palette.palette(),0x200); // custom palette for foreground compute_res_net_all(rgb, color_prom, battroad_char_decode_info, battroad_char_net_info); palette.set_pen_colors(0x200, rgb, 0x020); /* we'll need this at run time */ m_sprite_height_prom = color_prom + 0x620; }
PALETTE_INIT_MEMBER(m62_state,battroad) { const UINT8 *color_prom = memregion("proms")->base(); rgb_t *rgb; // m62 palette rgb = compute_res_net_all(machine(), color_prom, &m62_tile_decode_info, &m62_tile_net_info); palette_set_colors(machine(), 0x000, rgb, 0x100); auto_free(machine(), rgb); rgb = compute_res_net_all(machine(), color_prom, &m62_sprite_decode_info, &m62_sprite_net_info); palette_set_colors(machine(), 0x100, rgb, 0x100); auto_free(machine(), rgb); m62_amplify_contrast(machine().palette,0x200); // custom palette for foreground rgb = compute_res_net_all(machine(), color_prom, &battroad_char_decode_info, &battroad_char_net_info); palette_set_colors(machine(), 0x200, rgb, 0x020); auto_free(machine(), rgb); /* we'll need this at run time */ m_sprite_height_prom = color_prom + 0x620; }