130 lines
2.9 KiB
C
Raw Normal View History

2014-05-09 23:50:40 +02:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2014 - Daniel De Matteis
* Copyright (C) 2014 - Jean-André Santoni
*
* 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/>.
*/
#ifndef _MENU_DISP_LAKKA_H
#define _MENU_DISP_LAKKA_H
#include "../../../gfx/gl_common.h"
#include "../../../gfx/fonts/fonts.h"
#define THEME "monochrome" // flatui or monochrome themes are available
2014-09-10 04:53:07 +02:00
#ifndef LAKKA_DELAY
#define LAKKA_DELAY 0.02
#endif
enum
{
TEXTURE_MAIN = 0,
TEXTURE_FONT,
TEXTURE_BG,
TEXTURE_SETTINGS,
TEXTURE_SETTING,
TEXTURE_SUBSETTING,
TEXTURE_ARROW,
TEXTURE_RUN,
TEXTURE_RESUME,
TEXTURE_SAVESTATE,
TEXTURE_LOADSTATE,
TEXTURE_SCREENSHOT,
TEXTURE_RELOAD,
TEXTURE_LAST
};
2014-05-08 01:12:51 +07:00
typedef struct
{
2014-05-12 15:36:01 +02:00
char name[256];
2014-05-08 01:12:51 +07:00
GLuint icon;
float alpha;
float zoom;
float y;
rarch_setting_t *setting;
2014-05-27 02:02:39 +02:00
} menu_subitem_t;
2014-05-08 01:12:51 +07:00
typedef struct
{
2014-05-09 21:43:04 +02:00
char name[256];
char rom[PATH_MAX];
2014-05-08 01:12:51 +07:00
float alpha;
float zoom;
float y;
int active_subitem;
int num_subitems;
2014-05-27 02:02:39 +02:00
menu_subitem_t *subitems;
} menu_item_t;
2014-05-08 01:12:51 +07:00
typedef struct
{
2014-05-09 21:43:04 +02:00
char name[256];
char libretro[PATH_MAX];
2014-05-08 01:12:51 +07:00
GLuint icon;
GLuint item_icon;
2014-05-08 01:12:51 +07:00
float alpha;
float zoom;
int active_item;
int num_items;
2014-05-27 02:02:39 +02:00
menu_item_t *items;
} menu_category_t;
struct lakka_texture_item
{
GLuint id;
char path[PATH_MAX];
};
typedef struct lakka_handle
{
2014-10-10 17:50:55 +02:00
float c_active_zoom;
float c_passive_zoom;
float c_active_alpha;
float c_passive_alpha;
float i_active_zoom;
float i_passive_zoom;
float i_active_alpha;
float i_passive_alpha;
float margin_left;
float margin_top;
float title_margin_left;
float title_margin_top;
float label_margin_left;
float label_margin_top;
float setting_margin_left;
2014-10-10 18:10:13 +02:00
float above_subitem_offset;
float above_item_offset;
float active_item_factor;
float under_item_offset;
2014-10-10 18:20:52 +02:00
float hspacing;
float vspacing;
float all_categories_x;
float global_alpha;
float global_scale;
float arrow_alpha;
int depth;
int num_categories;
int menu_active_category;
2014-10-10 18:20:52 +02:00
int icon_size;
char icon_dir[4];
menu_category_t *categories;
struct lakka_texture_item textures[TEXTURE_LAST];
GLuint fbo;
GLuint fbo_color;
GLuint fbo_depth;
} lakka_handle_t;
#endif /* MENU_DISP_LAKKA_H */