220 Commits

Author SHA1 Message Date
twinaphex
6ac08ec123 Make customized version of get_video_size for OSX 10.7 and up to
avoid selector grabbing
2021-01-17 05:39:03 +01:00
twinaphex
e42f2b552f (COcoa GL context) Small cleanups 2021-01-17 05:22:29 +01:00
twinaphex
1e9f6f175e (OSX) Fix PowerPC build 2021-01-17 05:02:07 +01:00
Twinaphex
7177a8e7d9 Remove unused variable 2021-01-16 23:05:37 +01:00
twinaphex
4d5126f71a Improve cocoagl_gfx_ctx_get_native_scale 2021-01-16 23:03:25 +01:00
twinaphex
225b851eb6 Cleanups 2021-01-16 22:04:11 +01:00
twinaphex
757ea32782 Go back to CocoaView pointer in prototype 2021-01-16 20:37:56 +01:00
twinaphex
4e74a6f8b1 Attempt to fix build for iOS 2021-01-16 17:02:25 +01:00
twinaphex
9ddc39af59 Buildfix 2020-12-27 20:01:41 +01:00
twinaphex
c3ba223fe2 Do away with objc_msgSend calls 2020-12-27 17:31:57 +01:00
Twinaphex
62f4eae323 (Cocoa) Cleanups 2020-09-15 20:53:48 +02:00
twinaphex
26b2295759 (cocoa_gl_ctx.m) Style nits 2020-09-15 11:28:04 +02:00
twinaphex
c133c2a10c (Cocoa GL ctx) Add updateSel 2020-09-14 23:59:42 +02:00
Twinaphex
13e553a34b get_backing_scale_factor - use class_respondsToSelector 2020-09-14 21:27:22 +02:00
twinaphex
fb6642192d Add TARGET_OS_OSX ifdef around this 2020-09-14 16:17:31 +02:00
Twinaphex
2bfadbdad5 (Apple CocoaGL) Call flushBuffer with msg_objcSend 2020-09-14 16:15:53 +02:00
Twinaphex
b1723f7cd0 Remove unused CocoaTouch menu - allows us to get rid of a lot of
dead code
2020-08-09 19:41:04 +02:00
twinaphex
6922a36ea1 (CocoaGL) Another buildfix 2020-07-22 22:25:28 +02:00
twinaphex
b78591d9b6 Buildfix 2020-07-22 22:18:18 +02:00
Autechre
95221945bb
Merge pull request #11065 from yoshisuga/yoshisuga/ios-metal-dpi
[iOS][tvOS][Metal] Support getting video metrics to support proper touchscreen interactions
2020-07-22 07:09:24 +02:00
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 4f564360e7ba3df82e496d8dec8ca1a0dc3d4261.
2019-09-22 10:54:01 +02:00