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