Jump to content

Mre Sdk Official

// Event handler void mre_handle_event(MRE_EVENT event, int param)

void mre_display_set_background(DWORD color) bg_color = color; printf("[MRE] BG color = %06X\n", color); mre sdk

// Events typedef enum MRE_EVENT_KEY_PRESS, MRE_EVENT_KEY_RELEASE, MRE_EVENT_TIMER, MRE_EVENT_PEN_DOWN, MRE_EVENT_PEN_UP, MRE_EVENT_PEN_MOVE MRE_EVENT; // Event handler void mre_handle_event(MRE_EVENT event

// API functions void mre_init(void); void mre_exit(void); void mre_draw_text(const char* text, int x, int y, DWORD color); void mre_draw_rect(int x, int y, int w, int h, DWORD color, BOOL fill); void mre_display_set_background(DWORD color); void mre_update_display(void); void mre_set_timer(int ms, int timer_id); void mre_kill_timer(int timer_id); void mre_play_sound(int freq, int duration_ms); int mre_get_screen_width(void); int mre_get_screen_height(void); printf("[MRE] BG color = %06X\n"

×
×
  • Create New...