frontend: add gpu_unai configuration options
[pcsx_rearmed.git] / frontend / plugin_lib.h
... / ...
CommitLineData
1
2enum {
3 DKEY_SELECT = 0,
4 DKEY_L3,
5 DKEY_R3,
6 DKEY_START,
7 DKEY_UP,
8 DKEY_RIGHT,
9 DKEY_DOWN,
10 DKEY_LEFT,
11 DKEY_L2,
12 DKEY_R2,
13 DKEY_L1,
14 DKEY_R1,
15 DKEY_TRIANGLE,
16 DKEY_CIRCLE,
17 DKEY_CROSS,
18 DKEY_SQUARE,
19};
20extern int in_type1, in_type2;
21extern int in_keystate, in_state_gun, in_a1[2], in_a2[2];
22void in_update_analogs(void);
23
24extern void *pl_vout_buf;
25
26void pl_text_out16(int x, int y, const char *texto, ...);
27void pl_start_watchdog(void);
28void *pl_prepare_screenshot(int *w, int *h, int *bpp);
29void pl_init(void);
30
31void pl_timing_prepare(int is_pal);
32void pl_frame_limit(void);
33
34void pl_update_gun(int *xn, int *xres, int *y, int *in);
35
36struct rearmed_cbs {
37 void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h);
38 int (*pl_vout_open)(void);
39 void *(*pl_vout_set_mode)(int w, int h, int bpp);
40 void *(*pl_vout_flip)(void);
41 void (*pl_vout_close)(void);
42 // gpu options
43 int frameskip;
44 int fskip_advice;
45 struct {
46 int iUseDither;
47 int dwActFixes;
48 float fFrameRateHz;
49 int dwFrameRateTicks;
50 } gpu_peops;
51 struct {
52 int abe_hack;
53 int no_light, no_blend;
54 } gpu_unai;
55};
56
57extern struct rearmed_cbs pl_rearmed_cbs;
58
59#ifndef ARRAY_SIZE
60#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
61#endif