summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/lordgun.h
blob: 681f3e91220d130a54ba83990ae8f557e646325a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*************************************************************************

                      -= IGS Lord Of Gun =-

*************************************************************************/

typedef struct _lordgun_gun_data lordgun_gun_data;
struct _lordgun_gun_data
{
	int		scr_x,	scr_y;
	UINT16	hw_x,	hw_y;
};

class lordgun_state : public driver_device
{
public:
	lordgun_state(const machine_config &mconfig, device_type type, const char *tag)
		: driver_device(mconfig, type, tag) { }

	UINT8 m_old;
	UINT8 m_aliencha_dip_sel;
	UINT16 *m_priority_ram;
	UINT16 m_priority;
	UINT16 *m_vram[4];
	UINT16 *m_scroll_x[4];
	UINT16 *m_scroll_y[4];
	UINT16 *m_scrollram;
	int m_whitescreen;
	lordgun_gun_data m_gun[2];
	tilemap_t *m_tilemap[4];
	bitmap_t *m_bitmaps[5];
	UINT16 *m_spriteram;
	size_t m_spriteram_size;
};


/*----------- defined in video/lordgun.c -----------*/

WRITE16_HANDLER( lordgun_paletteram_w );
WRITE16_HANDLER( lordgun_vram_0_w );
WRITE16_HANDLER( lordgun_vram_1_w );
WRITE16_HANDLER( lordgun_vram_2_w );
WRITE16_HANDLER( lordgun_vram_3_w );

float lordgun_crosshair_mapper(const input_field_config *field, float linear_value);
void lordgun_update_gun(running_machine &machine, int i);

VIDEO_START( lordgun );
SCREEN_UPDATE( lordgun );