blob: 6563dd5a8a3a06c2b44407e59ffd7ce9755b4513 (
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
|
// license:BSD-3-Clause
// copyright-holders:Bryan McPhail,David Haywood
#ifndef MAME_VIDEO_DECKARN_H
#define MAME_VIDEO_DECKARN_H
#pragma once
#include "screen.h"
class deco_karnovsprites_device : public device_t
{
public:
typedef device_delegate<void (u32 &colour, u32 &pri_mask)> colpri_cb_delegate;
deco_karnovsprites_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, gfx_element *gfx, u16* spriteram, int size);
void set_flip_screen(bool flip) { m_flip_screen = flip; }
template <typename... T> void set_colpri_callback(T &&... args) { m_colpri_cb.set(std::forward<T>(args)...); }
protected:
virtual void device_start() override;
virtual void device_reset() override;
private:
colpri_cb_delegate m_colpri_cb;
bool m_flip_screen = false;
};
DECLARE_DEVICE_TYPE(DECO_KARNOVSPRITES, deco_karnovsprites_device)
#endif // MAME_VIDEO_DECKARN_H
|