2021-04-20 07:21:44 +10:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct MGBA;
|
|
|
|
|
|
|
|
struct video_buffer {
|
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
uint32_t* buffer;
|
|
|
|
};
|
|
|
|
|
2021-06-04 21:29:56 +10:00
|
|
|
struct callback {
|
|
|
|
void* data;
|
|
|
|
void (*callback)(void*, char[]);
|
|
|
|
void (*destroy)(void*);
|
|
|
|
};
|
|
|
|
|
2021-04-20 07:21:44 +10:00
|
|
|
struct MGBA* new_runner(char filename[]);
|
|
|
|
void free_runner(struct MGBA* mgba);
|
2021-06-04 21:29:56 +10:00
|
|
|
void set_logger(struct MGBA*, struct callback);
|
2021-04-20 07:21:44 +10:00
|
|
|
void advance_frame(struct MGBA* mgba);
|
|
|
|
struct video_buffer get_video_buffer(struct MGBA* mgba);
|