blob: e57dc4be32b11ddd8018cb858783ae0bdfea6c62 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/*********************************************************************
generic.h
Generic simple video functions.
Copyright Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
*********************************************************************/
#pragma once
#ifndef __VIDEO_GENERIC_H__
#define __VIDEO_GENERIC_H__
/***************************************************************************
COMMON GRAPHICS LAYOUTS
***************************************************************************/
extern const gfx_layout gfx_8x8x1;
extern const gfx_layout gfx_8x8x2_planar;
extern const gfx_layout gfx_8x8x3_planar;
extern const gfx_layout gfx_8x8x4_planar;
extern const gfx_layout gfx_8x8x5_planar;
extern const gfx_layout gfx_8x8x6_planar;
extern const gfx_layout gfx_16x16x4_planar;
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
/* ----- initialization ----- */
/* set up all the common systems */
void generic_video_init(running_machine &machine);
/* ----- global attributes ----- */
/* set global attributes */
void flip_screen_set(running_machine &machine, int on);
void flip_screen_set_no_update(running_machine &machine, int on); /* will not call update_flip */
void flip_screen_x_set(running_machine &machine, int on);
void flip_screen_y_set(running_machine &machine, int on);
int flip_screen_get(running_machine &machine);
int flip_screen_x_get(running_machine &machine);
int flip_screen_y_get(running_machine &machine);
//#define flip_screen flip_screen_get(machine)
/* ----- generic palette init routines ----- */
PALETTE_INIT( all_black );
PALETTE_INIT( black_and_white );
PALETTE_INIT( monochrome_amber );
PALETTE_INIT( monochrome_green );
PALETTE_INIT( RRRR_GGGG_BBBB );
PALETTE_INIT( RRRRR_GGGGG_BBBBB );
PALETTE_INIT( BBBBB_GGGGG_RRRRR );
PALETTE_INIT( RRRRR_GGGGGG_BBBBB );
#endif /* __VIDEO_GENERIC_H__ */
|