view render_sdl.h @ 1551:ce1f93be0104

Small cleanup to audio interface between emulation code and renderer backend
author Michael Pavone <pavone@retrodev.com>
date Wed, 28 Mar 2018 23:36:08 -0700
parents 0646ae0987c3
children 437e80a700aa
line wrap: on
line source

#ifndef RENDER_SDL_H_
#define RENDER_SDL_H_

#include <SDL.h>

SDL_Window *render_get_window(void);
typedef void (*ui_render_fun)(void);
typedef void (*event_handler)(SDL_Event *);
void render_update_display(void);
void render_set_ui_render_fun(ui_render_fun);
void render_set_event_handler(event_handler handler);
void render_set_gl_context_handlers(ui_render_fun destroy, ui_render_fun create);

#endif //RENDER_SDL_H_