blob: 1314041a4154b4e58bd9459b8ea6c4d4b0c590b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
C++RAW
#include "UnityPrefix.h"
#include "Runtime/Scripting/ScriptingUtility.h"
#include "Runtime/Mono/MonoManager.h"
#include "Runtime/Mono/MonoBehaviour.h"
#include "Runtime/Utilities/Utility.h"
#if UNITY_XENON
#include "PlatformDependent/Xbox360/Source/Services/VideoMode.h"
#endif
CSRAW
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using UnityEngine;
namespace UnityEngine
{
// Xbox Video mode
CONDITIONAL UNITY_XENON_API
CLASS X360VideoMode
CSRAW
internal X360VideoMode() {}
CUSTOM public static UInt32 GetDisplayHeight()
{
#if UNITY_XENON
return xenon::VideoMode::GetDisplayHeight();
#else
return 720;
#endif
}
CUSTOM public static UInt32 GetDisplayWidth()
{
#if UNITY_XENON
return xenon::VideoMode::GetDisplayWidth();
#else
return 1280;
#endif
}
CUSTOM public static bool IsWideScreen()
{
#if UNITY_XENON
return xenon::VideoMode::IsWideScreen();
#else
return true;
#endif
}
CUSTOM public static bool IsInterlaced()
{
#if UNITY_XENON
return xenon::VideoMode::IsInterlaced();
#else
return false;
#endif
}
CUSTOM public static bool IsHiDef()
{
#if UNITY_XENON
return xenon::VideoMode::IsHiDef();
#else
return true;
#endif
}
CUSTOM public static float GetRefreshRate()
{
#if UNITY_XENON
return xenon::VideoMode::GetRefreshRate();
#else
return 60.0f;
#endif
}
END
CSRAW
} // namespace
|