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
|
// license:BSD-3-Clause
// copyright-holders:David Haywood, Luca Elia
#ifndef MAME_VIDEO_JALBLEND_H
#define MAME_VIDEO_JALBLEND_H
#pragma once
#include "emupal.h"
class jaleco_blend_device : public device_t
{
public:
jaleco_blend_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
~jaleco_blend_device() {}
rgb_t func(rgb_t dest, rgb_t addMe);
rgb_t func(rgb_t dest, rgb_t addMe, u8 alpha);
void drawgfx(palette_device &palette,bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx,
u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy,
u8 transparent_color);
void drawgfx(palette_device &palette,bitmap_rgb32 &dest_bmp,const rectangle &clip,gfx_element *gfx,
u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy,
u8 transparent_color);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
private:
template<class _BitmapClass>
void drawgfx_common(palette_device &palette,_BitmapClass &dest_bmp,const rectangle &clip,gfx_element *gfx,
u32 code,u32 color,bool flipx,bool flipy,int offsx,int offsy,
u8 transparent_color);
};
DECLARE_DEVICE_TYPE(JALECO_BLEND, jaleco_blend_device)
#endif // MAME_VIDEO_JALBLEND_H
|