/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2013 - Hans-Kristian Arntzen * Copyright (C) 2011-2013 - Daniel De Matteis * * 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 . */ #if defined(ANDROID) #define context_get_video_size_func(win, height) gfx_ctx_get_video_size(win, height) #define context_update_window_title_func(var) gfx_ctx_update_window_title(var) #define context_destroy_func() gfx_ctx_destroy() #define gl_shader_use_func(vid, num) gl_glsl_use(num) #define gl_shader_num_func(vid) gl_glsl_num() #define gl_shader_set_params_func(vid, width, height, tex_width, tex_height, out_width, out_height, frame_count, info, prev_info, fbo_info, fbo_info_cnt) gl_glsl_set_params(width, height, tex_width, tex_height, out_width, out_height, frame_count, info, prev_info, fbo_info, fbo_info_cnt) #define gl_shader_set_coords_func(vid, coords, mat) gl_glsl_set_coords(coords); gl_glsl_set_mvp(mat) #ifdef HAVE_FBO #define context_set_fbo_func(var) gl->ctx_driver->set_fbo(var) #endif #define context_get_available_resolutions_func() gl->ctx_driver->get_available_resolutions() #define context_translate_aspect_func(width, height) (device_aspect) #define context_set_resize_func(width, height) gl->ctx_driver->set_resize(width, height) #define context_swap_buffers_func() eglSwapBuffers(g_egl_dpy, g_egl_surf) #define context_swap_interval_func(var) eglSwapInterval(g_egl_dpy, var) #define context_has_focus_func() (true) #define context_check_window_func(quit, resize, width, height, frame_count) gfx_ctx_check_window(quit, resize, width, height, frame_count) #define context_set_video_mode_func(width, height, fullscreen) gfx_ctx_set_video_mode(width, height, fullscreen) #define context_input_driver_func(input, input_data) gl->ctx_driver->input_driver(input, input_data) #endif #ifdef HAVE_RMENU #define context_rmenu_init_func() gl->ctx_driver->rmenu_init() #define context_rmenu_frame_func(ctx) gl->ctx_driver->rmenu_frame(ctx) #define context_rmenu_free_func() gl->ctx_driver->rmenu_free() #endif #ifdef HAVE_EGL #define context_init_egl_image_buffer_func(video) gl->ctx_driver->init_egl_image_buffer(video) #define context_write_egl_image_func(frame, width, height, pitch, base_size, tex_index, img) gl->ctx_driver->write_egl_image(frame, width, height, pitch, base_size, tex_index,img) #endif #define context_post_render_func(gl) ((void)0)