浏览代码

fix:rename the files

/siyaoH-1.17-PlatformMessage
guanghuispark 4 年前
当前提交
a9d4f9c9
共有 7 个文件被更改,包括 33 次插入43 次删除
  1. 6
      engine/Build.bee.cs
  2. 8
      engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.mm
  3. 15
      engine/src/shell/platform/unity/darwin/ios/device_screen.mm
  4. 14
      engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.h
  5. 12
      engine/src/shell/platform/unity/darwin/ios/DeviceScreen.mm
  6. 21
      engine/src/shell/platform/unity/darwin/ios/UIWidgetsDevice.h
  7. 0
      /engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.mm

6
engine/Build.bee.cs


"src/shell/platform/unity/darwin/ios/cocoa_task_runner.h",
"src/shell/platform/unity/darwin/ios/unity_surface_manager.mm",
"src/shell/platform/unity/darwin/ios/unity_surface_manager.h",
"src/shell/platform/unity/darwin/ios/DeviceScreen.mm",
"src/shell/platform/unity/darwin/ios/UIWidgetsDevice.mm",
"src/shell/platform/unity/darwin/ios/UIWidgetsDevice.h",
"src/shell/platform/unity/darwin/ios/device_screen.mm",
"src/shell/platform/unity/darwin/ios/uiwidgets_device.mm",
"src/shell/platform/unity/darwin/ios/uiwidgets_device.h",
};
np.Sources.Add(c => IsWindows(c), winSources);

8
engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.mm


//
// UIWidgetsDevice.m
// Unity-iPhone
//
// Created by Xingwei Zhu on 2019/6/24.
//
#include "UIWidgetsDevice.h"
#include "uiwidgets_device.h"
#import <sys/utsname.h>
#import <UIKit/UIKit.h>

15
engine/src/shell/platform/unity/darwin/ios/device_screen.mm


#import <UIKit/UIKit.h>
#import "uiwidgets_device.h"
#include "runtime/mono_api.h"
namespace uiwidgets {
UIWIDGETS_API(float) IOSDeviceScaleFactor()
{
float scale = [[UIScreen mainScreen] scale] * 1.0;
if ([UIWidgetsDevice NeedScreenDownSample]) {
scale *= 0.8696;
}
return scale;
}
}

14
engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.h


#ifndef UIWidgetsDevice_h
#define UIWidgetsDevice_h
#import <UIKit/UIKit.h>
@interface UIWidgetsDevice : NSObject
+(NSString *) deviceName;
+(BOOL) NeedScreenDownSample;
@end
#endif

12
engine/src/shell/platform/unity/darwin/ios/DeviceScreen.mm


#import <UIKit/UIKit.h>
#import "UIWidgetsDevice.h"
extern "C"
{
float IOSDeviceScaleFactor(){
float scale = [[UIScreen mainScreen] scale] * 1.0;
if([UIWidgetsDevice NeedScreenDownSample]){
scale *= 0.8696;
}
return scale;
}
}

21
engine/src/shell/platform/unity/darwin/ios/UIWidgetsDevice.h


//
// UIWidgetsDevice.h
// Unity-iPhone
//
// Created by Xingwei Zhu on 2019/6/24.
//
#ifndef UIWidgetsDevice_h
#define UIWidgetsDevice_h
#import <UIKit/UIKit.h>
@interface UIWidgetsDevice : NSObject
+(NSString *) deviceName;
+(BOOL) NeedScreenDownSample;
@end
#endif /* UIWidgetsDevice_h */

/engine/src/shell/platform/unity/darwin/ios/UIWidgetsDevice.mm → /engine/src/shell/platform/unity/darwin/ios/uiwidgets_device.mm

正在加载...
取消
保存