7#ifndef LIBDRAGON_RDPQ_DEBUG_H
8#define LIBDRAGON_RDPQ_DEBUG_H
void rdpq_debug_install_hook(void(*hook)(void *ctx, uint64_t *cmd, int cmd_size), void *ctx)
Install a custom hook that will be called every time a RDP command is processed.
int rdpq_debug_disasm_size(uint64_t *buf)
Return the size of the next RDP commands.
Definition rdpq_debug.c:455
void rdpq_debug_start(void)
Initialize the RDPQ debugging engine.
void rdpq_debug_stop(void)
Stop the rdpq debugging engine.
void rdpq_debug_log(bool show_log)
Show a full log of all the RDP commands.
surface_t rdpq_debug_get_tmem(void)
Acquire a dump of the current contents of TMEM.
bool rdpq_debug_disasm(uint64_t *buf, FILE *out)
Disassemble a RDP command.
Definition rdpq_debug.c:763
void rdpq_debug_log_msg(const char *str)
Add a custom message in the RDP logging.
A surface buffer for graphics.
Definition surface.h:138