RetroArch
vita2d_common.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 VITA2D_COMMON_H__
18 #define VITA2D_COMMON_H__
19 
20 #include <vita2d.h>
21 
22 #include <retro_inline.h>
23 #include <string/stdstring.h>
24 #include <gfx/math/matrix_4x4.h>
25 
26 #include "../../defines/psp_defines.h"
27 #include "../../driver.h"
28 #include "../video_driver.h"
29 #include "../video_coord_array.h"
30 
31 typedef struct vita_menu_frame
32 {
33  bool active;
34  int width;
35  int height;
37 } vita_menu_t;
38 
39 #ifdef HAVE_OVERLAY
40 struct vita_overlay_data
41 {
42  vita2d_texture *tex;
43  float x;
44  float y;
45  float w;
46  float h;
47  float tex_x;
48  float tex_y;
49  float tex_w;
50  float tex_h;
51  float alpha_mod;
52  float width;
53  float height;
54 };
55 #endif
56 
57 typedef struct vita_video
58 {
60  SceGxmTextureFormat format;
61  int width;
62  int height;
63  SceGxmTextureFilter tex_filter;
64 
65  bool fullscreen;
66  bool vsync;
67  bool rgb32;
68 
70 
71  unsigned rotation;
73 
77 
79 
80 #ifdef HAVE_OVERLAY
81  struct vita_overlay_data *overlay;
82  unsigned overlays;
83  bool overlay_enable;
84  bool overlay_full_screen;
85 #endif
86 
87 } vita_video_t;
88 
89 #endif
Definition: vita2d.h:34
Definition: vita2d_common.h:57
Definition: matrix_4x4.h:40
bool should_resize
Definition: vita2d_common.h:76
bool keep_aspect
Definition: vita2d_common.h:75
Definition: vita2d_common.h:31
math_matrix_4x4 mvp
Definition: vita2d_common.h:72
struct vita_video vita_video_t
int width
Definition: vita2d_common.h:61
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection No arguments supplied and no menu displaying help Waiting for client Enable horizontal animation for the menu This will have a performance hit Hard synchronize the CPU and GPU Reduces latency at the cost of performance Audio volume Auto loading savestate from Connecting to netplay host Connection slot Password Username Accounts List Endpoint Achievements Scan Content Import content Assets Audio Device Audio DSP Plugin Audio Filter Audio Audio Maximum Timing Skew Audio Output Dynamic Audio Rate Control Audio Audio Volume SaveRAM Autosave Interval Load Remap Files Automatically Back Info Scroll Down Start Toggle Menu Confirm OK Quit Defaults Toggle Menu Bluetooth Enable Cache Camera Driver Apply Cheat Changes Cheat File Save Cheat File As Description Locked Locked Test Unofficial Achievements Unlocked Config Configuration Collections Content Quick Menu Downloads Core Counters Core Information Categories Core name Permissions System manufacturer Controls Options Start a Core Automatically Buildbot Cores URL Updater CPU Cursor Custom Ratio Database Selection Favorites< Default > Directory not found Disk Cycle Tray Status Disk Index Don t care Download Core DPI Override Enable Driver Dynamic Wallpaper Enable Achievements Menu entry normal color Maximum Run Speed Limit Maximum Run Speed Frontend Counters Create game options file help Changing Virtual Gamepad Overlay Help Scanning For Content History List Enable Horizontal Menu Information Analog To Digital Type Left Analog X Left analog Left Analog Y Left analog Right Analog X Right analog Right Analog Y Right analog Gun Trigger Gun Aux A Gun Aux C Gun Select Gun D pad Down Gun D pad Right Analog Stick Deadzone Bind All Bind Timeout Hide Unbound Core Input Descriptors Device Index Input Driver Input Hotkey Binds A B Down D pad L3 L Left D pad R3 R Right D pad Start button X Y Mouse Mouse Mouse Wheel Down Wheel Right Max Users Cheat index Cheat toggle Disk next Enable hotkeys Fast forward toggle Fullscreen toggle Load state Movie record toggle On screen keyboard toggle Pause toggle Reset game Save state Next shader Slow motion Savestate slot Volume Hide Overlay In Menu Early Normal Input Remapping Save Autoconfig Small Keyboard Enable Turbo enable Input User u Binds Input Autoconfig Services Dutch Esperanto German Japanese Polish Russian Vietnamese Left Analog Core Info Linear Load Recent Load State Location Driver Logging Verbosity Database Settings Blue Dark Blue Shield Yellow Header Opacity Throttle Menu Framerate Menu Linear Filter Appearance Background opacity Multimedia Filter unknown extensions Nearest Netplay Check Frames Disconnect Connect to Netplay host Stop netplay host Netplay Client Enable Netplay settings Netplay TCP UDP Port Network Command Port Network Gamepad Network None No achievements to display No cores available No core options available No history available No items No playlists No settings found OFF Online Onscreen Display Onscreen Notifications Optional Autoload Preferred Overlay Overlay Opacity Overlay Scale Use PAL60 Mode Pause when menu activated Performance Counters Playlist Touch Support Present Quit RetroArch BBFC Rating Co op supported Description Edge Magazine Issue Edge Magazine Review Enhancement Hardware Famitsu Magazine Rating Genre Name PEGI Rating Releasedate Month Rumble supported SHA1 TGDB Rating Recording Config Recording Record Driver Save Output Recording as Remap File Save Core Remap File Required Restart RetroArch Resume RetroPad Achievements Rewind Granularity File Browser Display Start Screen Run Savefile Auto Load State Savestate Save Core Overrides Save New Configuration Saving Scan File Screenshot Search Settings Shader Shaders Simple Snow Show Advanced Settings Shutdown Sort Saves In Folders SSH Enable Start Remote RetroPad State Slot stdin Commands Suspend Screensaver System BIOS support Build date Cocoa support CoreText support Display metric DPI Display metric DirectSound support Dynamic library support EGL support FFmpeg support STB TrueType support Frontend name Git version HLSL support KMS EGL support Libusb support Network Command interface support OpenAL support OpenGL support OpenVG support Overlay support Charged Discharging PulseAudio support BMP RetroRating level RoarAudio support RSound support SDL2 support SDL1 support Threading support Video4Linux2 support Vulkan support X11 support XVideo support Take Screenshot Thumbnails Thumbnails Updater Screenshots Display time date True UI Companion Start On Boot Unable to read compressed file Undo Save State Updater Update Joypad Profiles Update Cheats Update Databases Update Lakka Update Slang Shaders User Interface User Use Builtin Media Player Allow rotation Aspect Ratio Crop Disable Desktop Composition Video Driver Video Filter Enable Onscreen Notifications Onscreen Notification Size Force disable sRGB FBO Use Fullscreen Mode Use GPU Recording Hard GPU Sync Max swapchain images Onscreen Notification Y Position Use Post Filter Recording Estimated Screen Framerate Rotation Integer Scale Video Shader Preview Shader Parameters Save Shader Preset As Save Game Preset Bilinear Filtering Vertical Video Deflicker Custom Viewport Width Custom Viewport Y Pos Vertical Windowed Fullscreen Mode Window Height Wi Fi Menu Font Red Color Menu Font Blue Color Custom Monochrome Systematic Pixel Retrosystem Menu Color Theme Dark Electric Blue Legacy Red Plain Volcanic Red Menu Scale Factor Display History Tab Display Music Tab Display Video Tab Menu Icon Theme Shader Preset Enable or disable unofficial achievements and or beta features for testing purposes Change drivers for this system Change settings for the core Change settings for display overlay
Definition: msg_hash_eo.h:1709
SceGxmTextureFilter tex_filter
Definition: vita2d_common.h:63
bool rgb32
Definition: vita2d_common.h:67
int height
Definition: vita2d_common.h:62
bool vblank_not_reached
Definition: vita2d_common.h:74
math_matrix_4x4 mvp_no_rot
Definition: vita2d_common.h:72
bool active
Definition: vita2d_common.h:33
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
struct vita_menu_frame vita_menu_t
Definition: video_driver.h:686
int width
Definition: vita2d_common.h:34
GLint GLint GLsizei width
Definition: glext.h:6293
vita2d_texture * texture
Definition: vita2d_common.h:36
unsigned rotation
Definition: vita2d_common.h:71
bool vsync
Definition: vita2d_common.h:66
bool fullscreen
Definition: vita2d_common.h:65
vita2d_texture * texture
Definition: vita2d_common.h:59
int height
Definition: vita2d_common.h:35
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6742
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
vita_menu_t menu
Definition: vita2d_common.h:78
video_viewport_t vp
Definition: vita2d_common.h:69
SceGxmTextureFormat format
Definition: vita2d_common.h:60
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293