1 // license:BSD-3-Clause
2 // copyright-holders:Bryan McPhail,David Haywood
3 #ifndef MAME_VIDEO_DECO_ZOOMSPR_H
4 #define MAME_VIDEO_DECO_ZOOMSPR_H
5 
6 #pragma once
7 
8 
9 class deco_zoomspr_device : public device_t
10 {
11 public:
12 	deco_zoomspr_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
13 
set_gfxdecode(T && tag)14 	template <typename T> void set_gfxdecode(T &&tag) { m_gfxdecode.set_tag(std::forward<T>(tag)); }
15 
16 	void dragngun_draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, const uint32_t *spritedata, uint32_t* dragngun_sprite_layout_0_ram, uint32_t* dragngun_sprite_layout_1_ram, uint32_t* dragngun_sprite_lookup_0_ram, uint32_t* dragngun_sprite_lookup_1_ram, uint32_t dragngun_sprite_ctrl, bitmap_ind8 &pri_bitmap, bitmap_rgb32 &temp_bitmap);
17 
18 
19 protected:
20 	virtual void device_start() override;
21 	virtual void device_reset() override;
22 
23 private:
24 	required_device<gfxdecode_device> m_gfxdecode;
25 
26 	void dragngun_drawgfxzoom(
27 		bitmap_rgb32 &dest_bmp, const rectangle &clip, gfx_element *gfx,
28 		uint32_t code, uint32_t color, int flipx, int flipy, int sx, int sy,
29 		int transparent_color,
30 		int scalex, int scaley, bitmap_ind8 *pri_buffer, uint32_t pri_mask, int sprite_screen_width, int  sprite_screen_height, uint8_t alpha, bitmap_ind8 &pri_bitmap, bitmap_rgb32 &temp_bitmap,
31 		int priority);
32 
33 };
34 
35 
36 DECLARE_DEVICE_TYPE(DECO_ZOOMSPR, deco_zoomspr_device)
37 
38 #endif // MAME_VIDEO_DECO_ZOOMSPR_H
39