blob: a523744e92102ef9a6acd325039fba7d322b2708 (
plain) (
tree)
|
|
// license:BSD-3-Clause
// copyright-holders:Luca Elia, David Haywood
#ifndef MAME_VIDEO_FUUKIFH_H
#define MAME_VIDEO_FUUKIFH_H
#pragma once
class fuukivid_device : public device_t,
public device_video_interface
{
public:
fuukivid_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration
void set_gfxdecode_tag(const char *tag) { m_gfxdecode.set_tag(tag); }
void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int flip_screen, uint32_t* tilebank);
std::unique_ptr<uint16_t[]> m_sprram;
std::unique_ptr<uint16_t[]> m_sprram_old;
std::unique_ptr<uint16_t[]> 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;
};
DECLARE_DEVICE_TYPE(FUUKI_VIDEO, fuukivid_device)
#define MCFG_FUUKI_VIDEO_GFXDECODE(_gfxtag) \
downcast<fuukivid_device &>(*device).set_gfxdecode_tag(_gfxtag);
#endif // MAME_VIDEO_FUUKIFH_H
|