1 /* RetroArch - A frontend for libretro. 2 * Copyright (C) 2010-2014 - Hans-Kristian Arntzen 3 * copyright (c) 2011-2017 - Daniel De Matteis 4 * copyright (c) 2016-2019 - Brad Parker 5 * 6 * RetroArch is free software: you can redistribute it and/or modify it under the terms 7 * of the GNU General Public License as published by the Free Software Found- 8 * ation, either version 3 of the License, or (at your option) any later version. 9 * 10 * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 12 * PURPOSE. See the GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License along with RetroArch. 15 * If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __CACA_COMMON_H 19 #define __CACA_COMMON_H 20 21 struct caca_canvas; 22 struct caca_dither; 23 struct caca_display; 24 25 typedef struct caca_canvas caca_canvas_t; 26 typedef struct caca_dither caca_dither_t; 27 typedef struct caca_display caca_display_t; 28 29 typedef struct caca 30 { 31 caca_canvas_t *cv; 32 caca_dither_t *dither; 33 caca_display_t *display; 34 unsigned char *menu_frame; 35 unsigned menu_width; 36 unsigned menu_height; 37 unsigned menu_pitch; 38 unsigned video_width; 39 unsigned video_height; 40 unsigned video_pitch; 41 bool rgb32; 42 } caca_t; 43 44 #endif 45