psx_gpu: texture cache fix, updates
[pcsx_rearmed.git] / frontend / common / plat.h
... / ...
CommitLineData
1#ifdef __cplusplus
2extern "C" {
3#endif
4
5/* stuff to be implemented by platform code */
6extern const char *renderer_names[];
7extern const char *renderer_names32x[];
8
9void pemu_prep_defconfig(void);
10void pemu_validate_config(void);
11void pemu_loop_prep(void);
12void pemu_loop_end(void);
13void pemu_forced_frame(int no_scale, int do_emu); // ..to g_menubg_src_ptr
14void pemu_finalize_frame(const char *fps, const char *notice_msg);
15
16void pemu_sound_start(void);
17void pemu_sound_stop(void);
18void pemu_sound_wait(void);
19
20void plat_early_init(void);
21void plat_init(void);
22void plat_finish(void);
23
24/* return the dir/ where configs, saves, bios, etc. are found */
25int plat_get_root_dir(char *dst, int len);
26
27/* used before things blocking for a while (these funcs redraw on return) */
28void plat_status_msg_busy_first(const char *msg);
29void plat_status_msg_busy_next(const char *msg);
30void plat_status_msg_clear(void);
31
32/* menu: enter (switch bpp, etc), begin/end drawing */
33void plat_video_menu_enter(int is_rom_loaded);
34void plat_video_menu_begin(void);
35void plat_video_menu_end(void);
36void plat_video_menu_leave(void);
37
38void plat_video_flip(void);
39void plat_video_wait_vsync(void);
40void plat_video_toggle_renderer(int change, int menu_call);
41
42void plat_update_volume(int has_changed, int is_up);
43
44int plat_is_dir(const char *path);
45int plat_wait_event(int *fds_hnds, int count, int timeout_ms);
46void plat_sleep_ms(int ms);
47
48/* timers, to be used for time diff and must refer to the same clock */
49unsigned int plat_get_ticks_ms(void);
50unsigned int plat_get_ticks_us(void);
51void plat_wait_till_us(unsigned int us);
52
53void plat_debug_cat(char *str);
54
55#ifdef __cplusplus
56} // extern "C"
57#endif
58