RetroArch
ozone_display.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2011-2017 - Daniel De Matteis
3  * Copyright (C) 2014-2017 - Jean-André Santoni
4  * Copyright (C) 2016-2017 - Brad Parker
5  * Copyright (C) 2018 - Alfredo Monclús
6  * Copyright (C) 2018 - natinusala
7  *
8  * RetroArch is free software: you can redistribute it and/or modify it under the terms
9  * of the GNU General Public License as published by the Free Software Found-
10  * ation, either version 3 of the License, or (at your option) any later version.
11  *
12  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  * PURPOSE. See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along with RetroArch.
17  * If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "ozone.h"
21 
22 #include "../../menu_driver.h"
23 
24 void ozone_draw_text(
26  ozone_handle_t *ozone,
27  const char *str, float x,
28  float y,
29  enum text_alignment text_align,
30  unsigned width, unsigned height, font_data_t* font,
32  bool draw_outside);
33 
36  int x_offset,
37  unsigned width, unsigned height,
38  size_t y, float alpha);
39 
40 void ozone_color_alpha(float *color, float alpha);
41 
42 void ozone_draw_icon(
44  unsigned icon_width,
45  unsigned icon_height,
47  float x, float y,
48  unsigned width, unsigned height,
49  float rotation, float scale_factor,
50  float *color);
51 
53 
55 
56 void ozone_draw_osk(ozone_handle_t *ozone,
58  const char *label, const char *str);
59 
62  const char *message);
struct nk_font * font
Definition: nk_common.c:40
void ozone_draw_messagebox(ozone_handle_t *ozone, video_frame_info_t *video_info, const char *message)
Definition: ozone_display.c:348
_W64 unsigned int uintptr_t
Definition: stdint.h:165
rotation
Definition: video_defines.h:62
text_alignment
Definition: video_defines.h:103
void ozone_draw_cursor(ozone_handle_t *ozone, video_frame_info_t *video_info, int x_offset, unsigned width, unsigned height, size_t y, float alpha)
Definition: ozone_display.c:188
void ozone_draw_osk(ozone_handle_t *ozone, video_frame_info_t *video_info, const char *label, const char *str)
Definition: ozone_display.c:257
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
void ozone_draw_icon(video_frame_info_t *video_info, unsigned icon_width, unsigned icon_height, uintptr_t texture, float x, float y, unsigned width, unsigned height, float rotation, float scale_factor, float *color)
Definition: ozone_display.c:205
Definition: video_driver.h:405
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glext.h:6233
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
Definition: video_driver.h:332
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
Definition: ozone.h:45
GLfloat GLfloat GLfloat alpha
Definition: glext.h:6290
GLuint color
Definition: glext.h:6883
GLint GLint GLsizei width
Definition: glext.h:6293
void ozone_restart_cursor_animation(ozone_handle_t *ozone)
Definition: ozone_display.c:86
Definition: metal_common.m:516
void ozone_color_alpha(float *color, float alpha)
Definition: ozone_display.c:200
void ozone_draw_text(video_frame_info_t *video_info, ozone_handle_t *ozone, const char *str, float x, float y, enum text_alignment text_align, unsigned width, unsigned height, font_data_t *font, uint32_t color, bool draw_outside)
Definition: ozone_display.c:100
void ozone_draw_backdrop(video_frame_info_t *video_info, float alpha)
Definition: ozone_display.c:250
unsigned int uint32_t
Definition: stdint.h:126
const char *const str
Definition: portlistingparse.c:18
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
Definition: font_driver.h:119