twinaphex
12a4fa0809
Buildfix
2020-07-22 00:46:16 +02:00
twinaphex
ca2a59e03d
(Cocoa GL) Global variable cleanups
2020-07-22 00:44:45 +02:00
Yoshi Sugawara
c462aaf374
iOS Metal: implement the metric method for the graphics context to support getting the dpi - this is needed to make the touch interactions with the menus work. Update the metal and opengl graphics context to support a lower dpi for larger screen iPhones to make better use of the screen
2020-07-21 11:33:37 -10:00
Autechre
6c7143d02d
Merge pull request #10981 from yoshisuga/yoshisuga/ios-metal
...
iOS/tvOS Metal Renderer
2020-07-21 20:41:07 +02:00
Yoshi Sugawara
271ac7f925
support the OpenGL driver in the metal build by delegating the view initialization to the ApplePlatform delegate (metal build only for now)
2020-07-20 14:00:28 -10:00
twinaphex
9ac9309991
Optimize call to vulkan_present
2020-07-20 04:45:12 +02:00
Yoshi Sugawara
3dc716299f
replaced confusing ifdef with a more concise #if TARGET_OS_OSX
2020-07-19 07:54:47 -10:00
Yoshi Sugawara
82d6d8e876
add the metal view to the view controller view after initializing the metal view for iOS
2020-07-07 08:19:46 -10:00
Yoshi Sugawara
6308ba1acb
support ApplePlatform for iOS and conform app delegate class to it, move app delegate class to apple_platform.h, fix metal references for iOS
2020-07-07 05:03:42 -10:00
twinaphex
4598f186a8
Get rid of video_frame_info dependency
2020-03-07 00:39:06 +01:00
twinaphex
4d7b627421
Get rid of video_info dependency for set_video_mode
2020-03-06 22:58:12 +01:00
twinaphex
e20151a048
Get rid of video_info struct for swap_buffers too
2020-03-06 22:29:51 +01:00
twinaphex
68664fdf1d
update_title - we don't need video_info
2020-03-06 22:11:44 +01:00
twinaphex
4aae293e3d
Remove is_shutdown from check_window
2020-03-06 20:29:31 +01:00
twinaphex
1b0ab1c05f
Cleanups
2020-02-21 07:34:53 +01:00
Jean-André Santoni
ba2c870d95
Allow building using make on OSX
2019-11-30 12:37:58 +07:00
twinaphex
861379d8e3
Revert code in hopes iOS works again
2019-11-20 06:25:40 +01:00
Twinaphex
d2d240ecf5
(iOS) Should fix iOS build problems
2019-11-20 02:58:17 +01:00
Twinaphex
81c020d300
Replace g_instance with CocoaView get
2019-11-20 02:24:03 +01:00
twinaphex
e3506ed06b
Move nsview_get_ptr to cocoa_common
2019-11-20 02:24:03 +01:00
Twinaphex
387e18b528
cocoagl_gfx_ctx_set_video_mode - go through [CocoaView get] here
2019-11-20 02:24:03 +01:00
twinaphex
964fcda79a
Move glkitview_init to cocoa_common.m
2019-11-20 02:24:02 +01:00
Jean-André Santoni
8e028f4db3
Remove useless HAVE_COCOA_METAL ifdef
2019-11-19 14:50:21 +07:00
twinaphex
29ced2a72f
Simplify cocoagl_gfx_ctx_get_video_size somewhat
2019-11-19 08:26:12 +01:00
Twinaphex
c7ce2c7053
Fix Xcode issue
2019-11-19 05:54:01 +01:00
Jean-André Santoni
d5a5380e6d
Fix building with make on OSX
2019-11-19 11:38:27 +07:00
twinaphex
221df13250
Cleanups/warning fixes - compilation fix for OSX PPC
2019-10-05 18:38:17 +02:00
Twinaphex
2414224df8
(Cocoa) It's only necessary to set the display server userdata for
...
set_video_mode
2019-09-22 11:29:58 +02:00
Twinaphex
511f43d5cf
Move it to cocoa_gl_ctx.m
2019-09-22 11:26:06 +02:00
Twinaphex
83f1b28f98
Revert "(Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m"
...
This reverts commit 4f564360e7
.
2019-09-22 10:54:01 +02:00
twinaphex
4f564360e7
(Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m
2019-09-22 10:48:23 +02:00
Twinaphex
23bb1414ff
(Metal) Buildfix
2019-09-22 10:30:59 +02:00
Twinaphex
6a9feb7978
(OSX) Refactor this so that we always set the userdata
...
pointer so we can use the new set_title codepaths - will
have to check how to reduce the overhead in nsview_get_ptr
later
2019-09-22 10:19:03 +02:00
Twinaphex
69a38f9b9f
(Cocoa) Pass direct pointer to UI companion driver window title function
2019-09-22 07:41:56 +02:00
twinaphex
718d65d95d
Take this out - too unsafe - fixes D3D12 driver
2019-08-29 12:30:56 +02:00
Twinaphex
6d0875e975
(OSX) Use new menu rescaling when resizing window
2019-08-24 20:36:06 +02:00
twinaphex
65b4c2595e
Update set keyboard mapping code for input driver
2019-07-27 02:21:24 +02:00
twinaphex
453cc3dcbd
(video context driver) has_Windowed can be degraded to a simple
...
boolean variable
2019-07-26 06:23:20 +02:00
Twinaphex
db6a4f8368
(UI Companion) Get rid of unused iterate function callback
2019-07-19 13:59:07 +02:00
twinaphex
278063d157
(CocoaGL) Silence warning when building without HAVE_VULKAN
2019-07-10 05:48:26 +02:00
Twinaphex
5d56302a31
Merge pull request #9033 from yoshisuga/ios_remove_pause_indicator
...
iOS: remove pause indicator
2019-06-29 12:12:32 +02:00
LazyBumHorse
c20c67bd3a
proper shader compatibility checks
...
- move shader flags from the video drivers to the context drivers
- rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
- implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
- use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
- remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
twinaphex
ee3208ac39
Integrate video_driver.c into retroarch.c
2019-06-17 15:10:22 +02:00
Yoshi Sugawara
45b36d7d47
iOS: remove pause indicator; show the native UI menu using 4-finger swipe down gesture
2019-06-14 08:35:33 -10:00
twinaphex
1f53eea4ee
(Cocoa GL/GLES) Set this flag for OpenGLES
2019-04-26 02:27:48 +02:00
twinaphex
59b45f7812
Start making HAVE_OPENGL_CORE independent
2019-04-24 03:23:57 +02:00
Twinaphex
dd5eca0f46
(OSX) Buildfix
2019-03-13 14:31:03 +01:00
twinaphex
b347b26d61
Reimplement shader flags being set - GL core should have only
...
Slang support and no GLSL, with the GL2 driver it is dependent
on the context driver
2019-03-13 14:06:50 +01:00
twinaphex
5733ed9a29
Move these defines to cocoa_common.h
2019-02-10 02:11:22 +01:00
twinaphex
293eac3019
Update
2019-02-10 02:03:50 +01:00
twinaphex
62cef96118
Update cocoa_gl_ctx.m
2019-02-10 02:02:17 +01:00
twinaphex
794ab4ef68
Update cocoagl_set_mode
2019-02-10 01:59:08 +01:00
twinaphex
2c9b7c84df
Updates
2019-02-10 01:54:39 +01:00
twinaphex
a49d0a50b9
Move more functionaliy to cocoa_gl_shared.h
2019-02-10 01:44:46 +01:00
twinaphex
74bddae86e
(CocoaGL) Move shared code to gl_shared file
2019-02-10 01:29:04 +01:00
twinaphex
b1c4bdf6f7
(Cocoa) Cleanups
2019-02-10 01:25:07 +01:00
twinaphex
20a94a5f37
(CocoaGL) Cleanups
2019-02-10 01:16:35 +01:00
twinaphex
d0e26c10aa
Move more code to cocoa_gl_shared.h
2019-02-10 01:11:07 +01:00
twinaphex
c363eb4397
Move more common functions over to cocoa_gl_shared.h
2019-02-10 00:58:05 +01:00
twinaphex
6f43b7974b
Add cocoa_gl_shared.h
2019-02-10 00:31:27 +01:00
Twinaphex
fa4e074552
Revert "(Cocoa) Have only one Cocoa GL context driver from now on"
...
This reverts commit 08bd58e0c4
.
2019-02-09 22:57:41 +01:00
Twinaphex
d85385ca8a
Revert "(OSX) Buildfix"
...
This reverts commit 13b8d63bc5
.
2019-02-09 22:57:28 +01:00
Twinaphex
13b8d63bc5
(OSX) Buildfix
2019-02-09 22:56:49 +01:00
twinaphex
08bd58e0c4
(Cocoa) Have only one Cocoa GL context driver from now on
2019-02-09 22:52:43 +01:00
twinaphex
a97fffccb8
Cleanup macro
2019-02-09 21:13:37 +01:00
twinaphex
f705503531
(Apple) Get rid of HAVE_CORELOCATION/HAVE_AVFOUNDATION - was mostly dormant
...
code and makes the Apple code needlessly complex right now. We can
always reintroduce this later on when the time is right
2019-02-07 04:03:52 +01:00
twinaphex
d1edfabddb
Revert "Move code to cocoa_common.m"
...
This reverts commit d3da2e2616
.
2019-02-07 03:25:01 +01:00
twinaphex
d3da2e2616
Move code to cocoa_common.m
2019-02-07 03:20:33 +01:00
orbea
28ff4b391a
Clean up white space.
2019-02-03 16:00:50 -08:00
Yoshi Sugawara
a18512375b
Support for tvOS
...
- add tvOS target
- support code signing tvOS cores by adding an argument to the code signing cores script
- use NSCachesDirectory for the documents directory
- add some mfi controller handling logic to set non-game controllers to the last index to avoid interfering with operation
- autodetect mfi controller for apple tv on startup - added autodetect to hid joypad
- added a webserver to transfer files for tvOS
- xcode: clean up project, remove unused folders
- remove HAVE_MATERIALUI setting for tvos build, make it use XMB as default
- added retroarch app icon courtesy of @MrJs
- added auto-detect of mfi controller for apple tv
2019-01-29 10:13:46 -10:00
twinaphex
85ed60cf9a
Cleanups
2018-10-01 03:46:12 +02:00
twinaphex
85f093e042
Change these to numbers
2018-08-31 21:25:33 +02:00
twinaphex
1265d7546c
Revert "Start using raw constants for OSX version detection"
...
This reverts commit ab34a70873
.
2018-08-31 19:19:42 +02:00
twinaphex
ab34a70873
Start using raw constants for OSX version detection
2018-08-30 16:35:44 +02:00
Twinaphex
f4c83157af
Fix CocoaGL context driver
2018-04-21 18:06:14 +02:00
twinaphex
16c1bd7a03
Create context get_api function
2018-03-01 21:16:54 +01:00
Twinaphex
59f7a59b3f
(Cocoa) Fix small leak
2017-10-01 09:33:53 +02:00
Twinaphex
c16bb5ff5e
(Cocoa) Buildfix
2017-06-27 06:14:13 +02:00
twinaphex
c1c5ebf5f6
(Cocoa) Start implementing core context hooks
2017-06-27 06:11:08 +02:00
twinaphex
94af3addd0
Update cocoa_gl_ctx.m
2017-06-26 07:23:04 +02:00
twinaphex
f5a12d63cc
(Cocoa) Try to support Core GL 3.1/3.2/3.3 and 4.1 on OSX 10.7 and
...
10.10 respectively
2017-06-26 07:16:41 +02:00
twinaphex
097d9bc13b
(iOS) Buildfix
2017-06-18 19:43:55 +02:00
Twinaphex
56d744ceaa
(Cocoa) Shared hardware context starts to work now
2017-06-18 19:35:34 +02:00
Twinaphex
5e0eec8857
Remove unused variable
2017-05-19 14:53:25 +02:00
twinaphex
b0398c1482
C89 build fixes
2017-05-19 03:34:53 +02:00
twinaphex
f928e57064
Combine video_context_driver.c and video_driver.c
2017-05-09 01:25:59 +02:00
twinaphex
05e4ec733e
Move uint variables
2017-04-28 21:03:04 +02:00
twinaphex
b591d63e8b
Silence unused variable warning
2017-04-15 20:20:47 +02:00
twinaphex
4b419ce125
(iOS) Fix 'release is unavailable; not available in automatic reference
...
counting mode'
2017-04-15 20:20:08 +02:00
twinaphex
e3fce81097
Use BRIDGE macro
2017-04-15 19:28:10 +02:00
twinaphex
1d97a81224
Optimize get_backing_scale_factor - store result of backing scale
...
factor query and use it for later function call invocations
2017-04-15 19:27:33 +02:00
Twinaphex
2324399fa8
Buildfix
2017-04-15 19:21:10 +02:00
twinaphex
e97682d4ca
Simplify cocoa_gl_ctx.m
2017-04-15 19:20:42 +02:00
Twinaphex
80017f7d71
(OSX) Try to free allocation at the end of get_selector
2017-04-15 19:13:21 +02:00
twinaphex
6247d6ea1d
Update check_window - we no longer need runloop.h inside context driver
2017-01-23 01:02:33 +01:00
twinaphex
4ea31e99aa
Remove some header includes
2017-01-23 00:39:20 +01:00
twinaphex
1ea3bea0ee
Don't pass video_info by value to context_driver init function
2017-01-22 18:29:22 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
Brad Parker
a54ea9ad88
show titlebar again for remaining drivers
2017-01-19 18:08:39 +00:00
twinaphex
9d1de5c974
Rewrite video_context_driver_set_resize
2017-01-19 14:31:57 +01:00