X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fplugin_lib.h;h=5b4af65904a6e8a8818955dddacdb7cc91c3bfbb;hb=ecfc2c3a7a11b9a455e66739f32b10517e5ced1c;hp=e48ed521864b0e4d33406d82a1d922193bf7b385;hpb=5bbe183f3aa15f21613fcf58ead2016c9283a842;p=pcsx_rearmed.git diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index e48ed521..5b4af659 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -45,10 +45,12 @@ void pl_start_watchdog(void); void *pl_prepare_screenshot(int *w, int *h, int *bpp); void pl_init(void); void pl_switch_dispmode(void); +void pl_force_clear(void); void pl_timing_prepare(int is_pal); void pl_frame_limit(void); +// for communication with gpulib struct rearmed_cbs { void (*pl_get_layer_pos)(int *x, int *y, int *w, int *h); int (*pl_vout_open)(void); @@ -61,6 +63,8 @@ struct rearmed_cbs { // only used by some frontends void (*pl_vout_set_raw_vram)(void *vram); void (*pl_set_gpu_caps)(int caps); + // emulation related + void (*gpu_state_change)(int what); // some stats, for display by some plugins int flips_per_sec, cpu_usage; float vsps_cur; // currect vsync/s @@ -89,6 +93,11 @@ struct rearmed_cbs { float fFrameRateHz; int dwFrameRateTicks; } gpu_peops; + struct { + int abe_hack; + int no_light, no_blend; + int lineskip; + } gpu_unai_old; struct { int ilace_force; int pixel_skip; @@ -96,11 +105,7 @@ struct rearmed_cbs { int fast_lighting; int blending; int dithering; - // old gpu_unai config for compatibility - int abe_hack; - int no_light, no_blend; - int lineskip; - int scale_hires; + int scale_hires; } gpu_unai; struct { int dwActFixes; @@ -110,13 +115,16 @@ struct rearmed_cbs { } gpu_peopsgl; // misc int gpu_caps; - int screen_centering_type; // 0 - auto, 1 - game conrolled, 2 - manual + int screen_centering_type; + int screen_centering_type_default; int screen_centering_x; int screen_centering_y; }; extern struct rearmed_cbs pl_rearmed_cbs; +enum centering_type { C_AUTO = 0, C_INGAME, C_BORDERLESS, C_MANUAL }; + enum gpu_plugin_caps { GPU_CAP_OWNS_DISPLAY = (1 << 0), GPU_CAP_SUPPORTS_2X = (1 << 1),