(Android) Add Android context hooks

This commit is contained in:
twinaphex 2012-10-09 00:11:11 +02:00
parent 7a761393dd
commit 8132f9fd8a
4 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,7 @@
VIDEO
============================================================ */
#if defined(HAVE_OPENGL) /* PS3, GL */
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) /* PS3, GL */
#define video_init_func(video_info, input, input_data) \
gl_init(video_info, input, input_data)
#define video_frame_func(data, width, height, pitch, msg) \

View File

@ -226,7 +226,7 @@ static void adjust_system_rates(void)
RARCH_LOG("Set audio input rate to: %.2f Hz.\n", g_settings.audio.in_rate);
#ifdef RARCH_CONSOLE
#if defined(RARCH_CONSOLE) && !defined(ANDROID)
video_set_nonblock_state_func(!g_settings.video.vsync || g_extern.system.force_nonblock);
#endif
}

View File

@ -45,6 +45,9 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = {
#if defined(HAVE_KMS)
&gfx_ctx_drm_egl,
#endif
#if defined(ANDROID)
&gfx_ctx_android,
#endif
};
const gfx_ctx_driver_t *gfx_ctx_find_driver(const char *ident)

View File

@ -107,6 +107,7 @@ extern const gfx_ctx_driver_t gfx_ctx_sdl_gl;
extern const gfx_ctx_driver_t gfx_ctx_x_egl;
extern const gfx_ctx_driver_t gfx_ctx_glx;
extern const gfx_ctx_driver_t gfx_ctx_drm_egl;
extern const gfx_ctx_driver_t gfx_ctx_android;
extern const gfx_ctx_driver_t gfx_ctx_ps3;
extern const gfx_ctx_driver_t gfx_ctx_xdk;
extern const gfx_ctx_driver_t gfx_ctx_wgl;