gopher64/parallel-rdp/interface.hpp
Logan McNaughton c363e78fbb
add slider for resolution (#264)
* add slider for resolution

* more
2025-02-19 14:48:36 +01:00

42 lines
851 B
C++

#pragma once
#ifdef __cplusplus
#include <cstdint>
extern "C"
{
#endif
typedef struct
{
uint8_t *RDRAM;
uint8_t *DMEM;
uint32_t RDRAM_SIZE;
uint32_t *DPC_CURRENT_REG;
uint32_t *DPC_START_REG;
uint32_t *DPC_END_REG;
uint32_t *DPC_STATUS_REG;
bool PAL;
} GFX_INFO;
typedef struct
{
bool emu_running;
bool save_state;
bool load_state;
bool enable_speedlimiter;
} CALL_BACK;
void rdp_init(void *_window, GFX_INFO _gfx_info, uint32_t _upscale, bool _integer_scaling, bool _fullscreen);
void rdp_close();
void rdp_set_vi_register(uint32_t reg, uint32_t value);
void rdp_update_screen();
CALL_BACK rdp_check_callback();
uint64_t rdp_process_commands();
void rdp_new_processor(GFX_INFO _gfx_info, uint32_t _upscale);
void rdp_check_framebuffers(uint32_t address);
void rdp_full_sync();
#ifdef __cplusplus
}
#endif