/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2012 - Hans-Kristian Arntzen * Copyright (C) 2011-2012 - 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 . */ #ifdef HAVE_SYSUTILS #include #endif #include "../rmenu.h" #include "../../../gfx/context/ps3_ctx.h" static void rmenu_ctx_ps3_clear(void) { gfx_ctx_clear(); } static void rmenu_ctx_ps3_blend(bool enable) { gfx_ctx_set_blend(enable); } static void rmenu_ctx_ps3_init_textures(void) { } static void rmenu_ctx_ps3_free_textures(void) { gl_t *gl = driver.video_data; gl->menu_render = false; } static void rmenu_ctx_ps3_render_selection_panel(rmenu_position_t *position) { (void)position; } static void rmenu_ctx_ps3_render_bg(rmenu_position_t *position) { (void)position; } static void rmenu_ctx_ps3_swap_buffers(void) { gfx_ctx_swap_buffers(); #ifdef HAVE_SYSUTILS cellSysutilCheckCallback(); #endif } static void rmenu_ctx_ps3_set_default_pos(rmenu_default_positions_t *position) { position->x_position = POSITION_X; position->x_position_center = POSITION_X_CENTER; position->comment_y_position = COMMENT_Y_POSITION; position->y_position_increment = POSITION_Y_INCREMENT; position->comment_two_y_position = COMMENT_TWO_Y_POSITION; position->font_size = HARDCODE_FONT_SIZE; } const rmenu_context_t rmenu_ctx_ps3 = { .clear = rmenu_ctx_ps3_clear, .blend = rmenu_ctx_ps3_blend, .free_textures = rmenu_ctx_ps3_free_textures, .init_textures = rmenu_ctx_ps3_init_textures, .render_selection_panel = rmenu_ctx_ps3_render_selection_panel, .render_bg = rmenu_ctx_ps3_render_bg, .swap_buffers = rmenu_ctx_ps3_swap_buffers, .set_default_pos = rmenu_ctx_ps3_set_default_pos, };