X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fplugin_lib.h;h=6b2d7186353c2e87701242607eb2999460d72831;hb=1328fa326b0e51dca172bb59e355e964ac666b64;hp=e48ed521864b0e4d33406d82a1d922193bf7b385;hpb=77961f230266f63a832d18c5b14084aea6df0687;p=pcsx_rearmed.git diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index e48ed521..6b2d7186 100644 --- a/frontend/plugin_lib.h +++ b/frontend/plugin_lib.h @@ -49,6 +49,7 @@ void pl_switch_dispmode(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 +62,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