blob: c2b4d14056d28e8a2d79182dff1d52da6c913376 (
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
|
// license:BSD-3-Clause
// copyright-holders:Luca Elia, David Haywood
class fuukivid_device : public device_t,
public device_video_interface
{
public:
fuukivid_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);
// static configuration
static void static_set_gfxdecode_tag(device_t &device, std::string tag);
void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip_screen, UINT32* tilebank);
std::unique_ptr<UINT16[]> m_sprram;
std::unique_ptr<UINT16[]> m_sprram_old;
std::unique_ptr<UINT16[]> m_sprram_old2;
DECLARE_WRITE16_MEMBER(fuuki_sprram_w)
{
COMBINE_DATA(&m_sprram[offset]);
};
DECLARE_READ16_MEMBER(fuuki_sprram_r)
{
return m_sprram[offset];
}
void buffer_sprites(void);
protected:
virtual void device_start() override;
virtual void device_reset() override;
private:
required_device<gfxdecode_device> m_gfxdecode;
};
extern const device_type FUUKI_VIDEO;
#define MCFG_FUUKI_VIDEO_GFXDECODE(_gfxtag) \
fuukivid_device::static_set_gfxdecode_tag(*device, "^" _gfxtag);
|