diff options
Diffstat (limited to 'Runtime/Export/XboxVideoMode.txt')
-rw-r--r-- | Runtime/Export/XboxVideoMode.txt | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/Runtime/Export/XboxVideoMode.txt b/Runtime/Export/XboxVideoMode.txt new file mode 100644 index 0000000..1314041 --- /dev/null +++ b/Runtime/Export/XboxVideoMode.txt @@ -0,0 +1,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 |