2012-10-04 23:19:39 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 00:50:59 +00:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2014 - Daniel De Matteis
|
2012-10-04 23:19:39 +00:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../../driver.h"
|
2013-02-16 11:30:26 +00:00
|
|
|
#include "../../general.h"
|
2012-10-16 15:18:10 +00:00
|
|
|
#include "../gfx_common.h"
|
2012-10-04 23:19:39 +00:00
|
|
|
#include "../gl_common.h"
|
|
|
|
|
2013-04-06 17:28:19 +00:00
|
|
|
#include <EGL/egl.h>
|
2012-10-04 23:19:39 +00:00
|
|
|
|
2013-11-03 16:02:40 +00:00
|
|
|
#include "../../frontend/platform/platform_android.h"
|
2014-05-28 19:14:11 +00:00
|
|
|
#include "../image/image.h"
|
2012-10-15 17:33:57 +00:00
|
|
|
|
2012-10-04 23:19:39 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
typedef struct gfx_ctx_android_data
|
|
|
|
{
|
|
|
|
bool g_use_hw_ctx;
|
|
|
|
EGLContext g_egl_hw_ctx;
|
|
|
|
EGLContext g_egl_ctx;
|
|
|
|
EGLSurface g_egl_surf;
|
|
|
|
EGLDisplay g_egl_dpy;
|
|
|
|
EGLConfig g_config;
|
|
|
|
} gfx_ctx_android_data_t;
|
|
|
|
|
2014-04-14 11:17:05 +00:00
|
|
|
static bool g_es3;
|
2012-10-04 23:47:52 +00:00
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static void android_gfx_ctx_set_swap_interval(void *data, unsigned interval)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
driver.video_context_data;
|
|
|
|
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android)
|
|
|
|
eglSwapInterval(android->g_egl_dpy, interval);
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
static void android_gfx_ctx_destroy_resources(gfx_ctx_android_data_t *android)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
if (!android)
|
|
|
|
return;
|
2014-06-20 02:34:42 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_dpy)
|
2014-06-20 02:34:42 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_ctx)
|
2014-06-20 02:34:42 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
eglMakeCurrent(android->g_egl_dpy,
|
|
|
|
EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
|
|
|
eglDestroyContext(android->g_egl_dpy, android->g_egl_ctx);
|
2014-06-20 02:34:42 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_hw_ctx)
|
|
|
|
eglDestroyContext(android->g_egl_dpy, android->g_egl_hw_ctx);
|
2014-06-20 02:34:42 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_surf)
|
|
|
|
eglDestroySurface(android->g_egl_dpy, android->g_egl_surf);
|
|
|
|
eglTerminate(android->g_egl_dpy);
|
2014-06-20 02:34:42 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
/* Be as careful as possible in deinit. */
|
|
|
|
|
|
|
|
android->g_egl_ctx = NULL;
|
|
|
|
android->g_egl_hw_ctx = NULL;
|
|
|
|
android->g_egl_surf = NULL;
|
|
|
|
android->g_egl_dpy = NULL;
|
|
|
|
android->g_config = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void android_gfx_ctx_destroy(void *data)
|
|
|
|
{
|
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
driver.video_context_data;
|
|
|
|
(void)data;
|
|
|
|
|
|
|
|
if (!android)
|
|
|
|
return;
|
|
|
|
|
|
|
|
android_gfx_ctx_destroy_resources(android);
|
2014-06-20 02:34:42 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (driver.video_context_data)
|
|
|
|
free(driver.video_context_data);
|
|
|
|
driver.video_context_data = NULL;
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
static void android_gfx_ctx_get_video_size(void *data,
|
|
|
|
unsigned *width, unsigned *height)
|
2012-11-03 18:23:52 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
driver.video_context_data;
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2014-10-24 16:58:53 +00:00
|
|
|
|
|
|
|
*width = 0;
|
|
|
|
*height = 0;
|
|
|
|
|
|
|
|
if (android && android->g_egl_dpy)
|
2012-11-03 18:23:52 +00:00
|
|
|
{
|
|
|
|
EGLint gl_width, gl_height;
|
2014-10-24 16:58:53 +00:00
|
|
|
|
|
|
|
eglQuerySurface(android->g_egl_dpy,
|
|
|
|
android->g_egl_surf, EGL_WIDTH, &gl_width);
|
|
|
|
eglQuerySurface(android->g_egl_dpy,
|
|
|
|
android->g_egl_surf, EGL_HEIGHT, &gl_height);
|
2012-12-27 23:12:18 +00:00
|
|
|
*width = gl_width;
|
2012-11-03 18:23:52 +00:00
|
|
|
*height = gl_height;
|
|
|
|
}
|
2012-12-24 19:17:16 +00:00
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static bool android_gfx_ctx_init(void *data)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
int var;
|
2013-01-05 06:38:59 +00:00
|
|
|
struct android_app *android_app = (struct android_app*)g_android;
|
2012-10-04 23:19:39 +00:00
|
|
|
const EGLint attribs[] = {
|
2012-10-31 16:12:18 +00:00
|
|
|
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
|
|
|
|
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
|
|
|
EGL_BLUE_SIZE, 8,
|
|
|
|
EGL_GREEN_SIZE, 8,
|
|
|
|
EGL_RED_SIZE, 8,
|
2014-02-13 11:04:08 +00:00
|
|
|
EGL_ALPHA_SIZE, 8,
|
2012-10-31 16:12:18 +00:00
|
|
|
EGL_NONE
|
2012-10-21 17:56:36 +00:00
|
|
|
};
|
|
|
|
EGLint num_config;
|
|
|
|
EGLint egl_version_major, egl_version_minor;
|
|
|
|
EGLint format;
|
|
|
|
|
|
|
|
EGLint context_attributes[] = {
|
2014-04-14 11:17:05 +00:00
|
|
|
EGL_CONTEXT_CLIENT_VERSION, g_es3 ? 3 : 2,
|
2012-10-21 17:56:36 +00:00
|
|
|
EGL_NONE
|
|
|
|
};
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
calloc(1, sizeof(gfx_ctx_android_data_t));
|
|
|
|
|
|
|
|
if (!android)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
RARCH_LOG("Android EGL: GLES version = %d.\n", g_es3 ? 3 : 2);
|
|
|
|
|
|
|
|
android->g_egl_dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
|
|
|
if (!android->g_egl_dpy)
|
2012-11-09 08:42:52 +00:00
|
|
|
{
|
2014-06-20 02:34:42 +00:00
|
|
|
RARCH_ERR("[Android/EGL]: Couldn't get EGL display.\n");
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
2012-11-09 08:42:52 +00:00
|
|
|
}
|
2012-10-21 17:56:36 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (!eglInitialize(android->g_egl_dpy,
|
|
|
|
&egl_version_major, &egl_version_minor))
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
RARCH_LOG("[ANDROID/EGL]: EGL version: %d.%d\n",
|
|
|
|
egl_version_major, egl_version_minor);
|
2012-10-21 17:56:36 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (!eglChooseConfig(android->g_egl_dpy,
|
|
|
|
attribs, &android->g_config, 1, &num_config))
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
var = eglGetConfigAttrib(android->g_egl_dpy, android->g_config,
|
|
|
|
EGL_NATIVE_VISUAL_ID, &format);
|
2012-11-09 19:46:58 +00:00
|
|
|
|
2012-11-09 20:20:55 +00:00
|
|
|
if (!var)
|
2012-11-09 08:42:52 +00:00
|
|
|
{
|
2012-11-09 19:46:58 +00:00
|
|
|
RARCH_ERR("eglGetConfigAttrib failed: %d.\n", var);
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
2012-11-09 08:42:52 +00:00
|
|
|
}
|
2012-10-21 17:56:36 +00:00
|
|
|
|
2013-01-05 06:20:02 +00:00
|
|
|
ANativeWindow_setBuffersGeometry(android_app->window, 0, 0, format);
|
2012-10-21 17:56:36 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
android->g_egl_ctx = eglCreateContext(android->g_egl_dpy,
|
|
|
|
android->g_config, EGL_NO_CONTEXT, context_attributes);
|
2014-06-20 02:34:42 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_ctx == EGL_NO_CONTEXT)
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_use_hw_ctx)
|
2012-11-09 08:42:52 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
android->g_egl_hw_ctx = eglCreateContext(android->g_egl_dpy,
|
|
|
|
android->g_config, android->g_egl_ctx,
|
2014-06-20 02:34:42 +00:00
|
|
|
context_attributes);
|
2014-10-24 16:58:53 +00:00
|
|
|
RARCH_LOG("[Android/EGL]: Created shared context: %p.\n",
|
|
|
|
(void*)android->g_egl_hw_ctx);
|
2014-06-20 02:34:42 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (android->g_egl_hw_ctx == EGL_NO_CONTEXT)
|
2014-06-20 02:34:42 +00:00
|
|
|
goto error;
|
2012-11-09 08:42:52 +00:00
|
|
|
}
|
2012-10-21 17:56:36 +00:00
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
android->g_egl_surf = eglCreateWindowSurface(android->g_egl_dpy,
|
|
|
|
android->g_config, android_app->window, 0);
|
|
|
|
if (!android->g_egl_surf)
|
2014-06-20 02:34:42 +00:00
|
|
|
goto error;
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
if (!eglMakeCurrent(android->g_egl_dpy, android->g_egl_surf,
|
|
|
|
android->g_egl_surf, android->g_egl_ctx))
|
2012-10-21 17:56:36 +00:00
|
|
|
goto error;
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
driver.video_context_data = android;
|
|
|
|
|
2012-10-21 17:56:36 +00:00
|
|
|
return true;
|
|
|
|
|
|
|
|
error:
|
2014-10-24 16:58:53 +00:00
|
|
|
android_gfx_ctx_destroy_resources(android);
|
|
|
|
|
|
|
|
if (android)
|
|
|
|
free(android);
|
|
|
|
|
2012-10-21 17:56:36 +00:00
|
|
|
return false;
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static void android_gfx_ctx_swap_buffers(void *data)
|
2012-10-16 12:43:34 +00:00
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
driver.video_context_data;
|
|
|
|
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2014-10-24 16:58:53 +00:00
|
|
|
|
|
|
|
eglSwapBuffers(android->g_egl_dpy, android->g_egl_surf);
|
2012-10-16 12:43:34 +00:00
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static void android_gfx_ctx_check_window(void *data, bool *quit,
|
2012-10-04 23:19:39 +00:00
|
|
|
bool *resize, unsigned *width, unsigned *height, unsigned frame_count)
|
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
unsigned new_width, new_height;
|
|
|
|
|
2012-10-04 23:19:39 +00:00
|
|
|
(void)frame_count;
|
2012-10-16 10:49:56 +00:00
|
|
|
|
|
|
|
*quit = false;
|
2012-12-27 22:30:27 +00:00
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
android_gfx_ctx_get_video_size(data, &new_width, &new_height);
|
2012-12-27 23:12:18 +00:00
|
|
|
if (new_width != *width || new_height != *height)
|
|
|
|
{
|
|
|
|
*width = new_width;
|
|
|
|
*height = new_height;
|
|
|
|
*resize = true;
|
|
|
|
}
|
2012-12-16 16:13:49 +00:00
|
|
|
|
2012-10-21 14:37:15 +00:00
|
|
|
// Check if we are exiting.
|
2014-06-02 07:52:30 +00:00
|
|
|
if (g_extern.system.shutdown)
|
2012-10-21 14:37:15 +00:00
|
|
|
*quit = true;
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-24 16:58:53 +00:00
|
|
|
static void android_gfx_ctx_set_resize(void *data,
|
|
|
|
unsigned width, unsigned height)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2012-10-04 23:19:39 +00:00
|
|
|
(void)width;
|
|
|
|
(void)height;
|
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static void android_gfx_ctx_update_window_title(void *data)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2013-10-07 18:17:07 +00:00
|
|
|
char buf[128], buf_fps[128];
|
2013-10-10 23:19:54 +00:00
|
|
|
bool fps_draw = g_settings.fps_show;
|
2014-10-24 16:58:53 +00:00
|
|
|
|
|
|
|
(void)data;
|
|
|
|
|
2013-10-07 19:54:29 +00:00
|
|
|
gfx_get_fps(buf, sizeof(buf), fps_draw ? buf_fps : NULL, sizeof(buf_fps));
|
2013-10-07 18:22:08 +00:00
|
|
|
|
2013-10-08 10:27:25 +00:00
|
|
|
if (fps_draw)
|
2013-10-07 18:22:08 +00:00
|
|
|
msg_queue_push(g_extern.msg_queue, buf_fps, 1, 1);
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static bool android_gfx_ctx_set_video_mode(void *data,
|
2012-10-04 23:19:39 +00:00
|
|
|
unsigned width, unsigned height,
|
2012-11-20 22:23:18 +00:00
|
|
|
bool fullscreen)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2012-10-04 23:19:39 +00:00
|
|
|
(void)width;
|
|
|
|
(void)height;
|
|
|
|
(void)fullscreen;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static void android_gfx_ctx_input_driver(void *data,
|
|
|
|
const input_driver_t **input, void **input_data)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2013-11-01 15:33:32 +00:00
|
|
|
void *androidinput = input_android.init();
|
|
|
|
*input = androidinput ? &input_android : NULL;
|
|
|
|
*input_data = androidinput;
|
2012-10-04 23:19:39 +00:00
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static gfx_ctx_proc_t android_gfx_ctx_get_proc_address(
|
|
|
|
const char *symbol)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
|
|
|
rarch_assert(sizeof(void*) == sizeof(void (*)(void)));
|
|
|
|
gfx_ctx_proc_t ret;
|
|
|
|
|
|
|
|
void *sym__ = eglGetProcAddress(symbol);
|
|
|
|
memcpy(&ret, &sym__, sizeof(void*));
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static bool android_gfx_ctx_bind_api(void *data,
|
|
|
|
enum gfx_ctx_api api, unsigned major, unsigned minor)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2014-04-14 11:17:05 +00:00
|
|
|
|
|
|
|
unsigned version = major * 100 + minor;
|
|
|
|
if (version > 300)
|
|
|
|
return false;
|
|
|
|
if (version < 300)
|
|
|
|
g_es3 = false;
|
|
|
|
else if (version == 300)
|
|
|
|
g_es3 = true;
|
2012-10-04 23:19:39 +00:00
|
|
|
return api == GFX_CTX_OPENGL_ES_API;
|
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static bool android_gfx_ctx_has_focus(void *data)
|
2012-10-04 23:19:39 +00:00
|
|
|
{
|
2014-03-09 16:11:06 +00:00
|
|
|
(void)data;
|
2012-10-04 23:19:39 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2014-10-08 16:09:01 +00:00
|
|
|
static bool android_gfx_ctx_has_windowed(void *data)
|
2014-10-08 15:23:02 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-06-20 02:34:42 +00:00
|
|
|
static void android_gfx_ctx_bind_hw_render(void *data, bool enable)
|
|
|
|
{
|
2014-10-24 16:58:53 +00:00
|
|
|
gfx_ctx_android_data_t *android = (gfx_ctx_android_data_t*)
|
|
|
|
driver.video_context_data;
|
|
|
|
|
2014-06-20 02:34:42 +00:00
|
|
|
(void)data;
|
2014-10-24 16:58:53 +00:00
|
|
|
|
|
|
|
if (!android)
|
|
|
|
return;
|
|
|
|
|
|
|
|
android->g_use_hw_ctx = enable;
|
|
|
|
|
|
|
|
if (android->g_egl_dpy && android->g_egl_surf)
|
|
|
|
eglMakeCurrent(
|
|
|
|
android->g_egl_dpy,
|
|
|
|
android->g_egl_surf,
|
|
|
|
android->g_egl_surf,
|
|
|
|
enable ? android->g_egl_hw_ctx : android->g_egl_ctx);
|
2014-06-20 02:34:42 +00:00
|
|
|
}
|
|
|
|
|
2012-10-04 23:19:39 +00:00
|
|
|
const gfx_ctx_driver_t gfx_ctx_android = {
|
2014-10-08 16:09:01 +00:00
|
|
|
android_gfx_ctx_init,
|
|
|
|
android_gfx_ctx_destroy,
|
|
|
|
android_gfx_ctx_bind_api,
|
|
|
|
android_gfx_ctx_set_swap_interval,
|
|
|
|
android_gfx_ctx_set_video_mode,
|
|
|
|
android_gfx_ctx_get_video_size,
|
2012-10-04 23:19:39 +00:00
|
|
|
NULL,
|
2014-10-08 16:09:01 +00:00
|
|
|
android_gfx_ctx_update_window_title,
|
|
|
|
android_gfx_ctx_check_window,
|
|
|
|
android_gfx_ctx_set_resize,
|
|
|
|
android_gfx_ctx_has_focus,
|
|
|
|
android_gfx_ctx_has_windowed,
|
|
|
|
android_gfx_ctx_swap_buffers,
|
|
|
|
android_gfx_ctx_input_driver,
|
|
|
|
android_gfx_ctx_get_proc_address,
|
2013-04-07 01:13:47 +00:00
|
|
|
#ifdef HAVE_EGL
|
2014-03-09 16:11:06 +00:00
|
|
|
NULL,
|
|
|
|
NULL,
|
2013-04-07 01:13:47 +00:00
|
|
|
#endif
|
2013-03-29 12:46:11 +00:00
|
|
|
NULL,
|
2012-10-04 23:19:39 +00:00
|
|
|
"android",
|
2014-06-20 02:34:42 +00:00
|
|
|
android_gfx_ctx_bind_hw_render,
|
2012-10-04 23:19:39 +00:00
|
|
|
};
|