RetroArch
video_defines.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __VIDEO_DEFINES__H
18 #define __VIDEO_DEFINES__H
19 
20 #include <retro_common_api.h>
21 
23 
25 {
30 };
31 
33 {
58 
60 };
61 
63 {
69 };
70 
72 {
73  /* Non-bindable types like consoles, KMS, VideoCore, etc. */
75  /* video_display => Display*, video_window => Window */
77  /* video_display => N/A, video_window => HWND */
80 };
81 
83 {
101 };
102 
104 {
108 };
109 
110 #ifndef COLOR_ABGR
111 #define COLOR_ABGR(r, g, b, a) (((unsigned)(a) << 24) | ((b) << 16) | ((g) << 8) | ((r) << 0))
112 #endif
113 
114 #define LAST_ASPECT_RATIO ASPECT_RATIO_CUSTOM
115 
116 /* ABGR color format defines */
117 
118 #define WHITE 0xffffffffu
119 #define RED 0xff0000ffu
120 #define GREEN 0xff00ff00u
121 #define BLUE 0xffff0000u
122 #define YELLOW 0xff00ffffu
123 #define PURPLE 0xffff00ffu
124 #define CYAN 0xffffff00u
125 #define ORANGE 0xff0063ffu
126 #define SILVER 0xff8c848cu
127 #define LIGHTBLUE 0xFFFFE0E0U
128 #define LIGHTORANGE 0xFFE0EEFFu
129 
130 #define FONT_COLOR_RGBA(r, g, b, a) (((unsigned)(r) << 24) | ((g) << 16) | ((b) << 8) | ((a) << 0))
131 #define FONT_COLOR_GET_RED(col) (((col) >> 24) & 0xff)
132 #define FONT_COLOR_GET_GREEN(col) (((col) >> 16) & 0xff)
133 #define FONT_COLOR_GET_BLUE(col) (((col) >> 8) & 0xff)
134 #define FONT_COLOR_GET_ALPHA(col) (((col) >> 0) & 0xff)
135 #define FONT_COLOR_ARGB_TO_RGBA(col) ( (((col) >> 24) & 0xff) | (((unsigned)(col) << 8) & 0xffffff00) )
136 
138 
139 #endif
rarch_display_type
Definition: video_defines.h:71
Definition: video_defines.h:26
Definition: video_defines.h:35
Definition: video_defines.h:98
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: video_defines.h:28
Definition: video_defines.h:88
rotation
Definition: video_defines.h:62
text_alignment
Definition: video_defines.h:103
Definition: video_defines.h:87
Definition: video_defines.h:54
Definition: video_defines.h:86
Definition: video_defines.h:56
Definition: video_defines.h:90
Definition: video_defines.h:92
Definition: video_defines.h:42
Definition: video_defines.h:68
Definition: video_defines.h:85
Definition: video_defines.h:50
Definition: video_defines.h:76
Definition: video_defines.h:39
Definition: video_defines.h:48
Definition: video_defines.h:49
Definition: video_defines.h:47
Definition: video_defines.h:107
Definition: video_defines.h:38
Definition: video_defines.h:106
Definition: video_defines.h:55
Definition: video_defines.h:100
texture_filter_type
Definition: video_defines.h:24
Definition: video_defines.h:29
Definition: video_defines.h:59
Definition: video_defines.h:52
Definition: video_defines.h:53
Definition: video_defines.h:84
Definition: video_defines.h:46
Definition: video_defines.h:67
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: video_defines.h:45
Definition: video_defines.h:93
Definition: video_defines.h:27
Definition: video_defines.h:79
Definition: video_defines.h:43
Definition: video_defines.h:37
Definition: video_defines.h:34
Definition: video_defines.h:64
Definition: video_defines.h:99
Definition: video_defines.h:51
Definition: video_defines.h:66
Definition: video_defines.h:91
aspect_ratio
Definition: video_defines.h:32
font_driver_render_api
Definition: video_defines.h:82
Definition: video_defines.h:65
Definition: video_defines.h:89
Definition: video_defines.h:94
Definition: video_defines.h:95
Definition: video_defines.h:78
Definition: video_defines.h:36
Definition: video_defines.h:44
Definition: video_defines.h:41
Definition: video_defines.h:97
Definition: video_defines.h:57
Definition: video_defines.h:40
Definition: video_defines.h:105
Definition: video_defines.h:74
Definition: video_defines.h:96