mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
1c168c4bcd
* add some CPU read cycles * more * more * more * use scissor region for rdp interrupt calc
30 lines
547 B
C++
30 lines
547 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;
|
|
} GFX_INFO;
|
|
|
|
void rdp_init(void *_window, GFX_INFO _gfx_info, bool _upscale, bool _integer_scaling, bool _fullscreen);
|
|
void rdp_close();
|
|
void rdp_set_vi_register(uint32_t reg, uint32_t value);
|
|
bool rdp_update_screen();
|
|
uint64_t rdp_process_commands();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|