Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

  1. // WindowsMR System|SDK_WindowsMR|002
  2. namespace VRTK
  3. {
  4. /// <summary>
  5. /// The Windows Mixed Reality System SDK script provides a bridge to the Windows Mixed Reality Unity SDK.
  6. /// </summary>
  7. [SDK_Description("WindowsMR", SDK_WindowsMRDefines.ScriptingDefineSymbol, "WindowsMR", "WSA")]
  8. public class SDK_WindowsMR
  9. #if VRTK_DEFINE_SDK_WINDOWSMR && UNITY_2017_2_OR_NEWER
  10. : SDK_BaseSystem
  11. #else
  12. : SDK_FallbackSystem
  13. #endif
  14. {
  15. #if VRTK_DEFINE_SDK_WINDOWSMR && UNITY_2017_2_OR_NEWER
  16. /// <summary>
  17. /// The ForceInterleavedReprojectionOn method determines whether Interleaved Reprojection should be forced on or off.
  18. /// </summary>
  19. /// <param name="force">If true then Interleaved Reprojection will be forced on, if false it will not be forced on.</param>
  20. public override void ForceInterleavedReprojectionOn(bool force)
  21. {
  22. // TODO: Compare with Oculus and SteamVR
  23. }
  24. /// <summary>
  25. /// The IsDisplayOnDesktop method returns true if the display is extending the desktop.
  26. /// </summary>
  27. /// <returns>Returns true if the display is extending the desktop</returns>
  28. public override bool IsDisplayOnDesktop()
  29. {
  30. // TODO: Compare with Oculus and SteamVR
  31. return false;
  32. }
  33. /// <summary>
  34. /// The ShouldAppRenderWithLowResources method is used to determine if the Unity app should use low resource mode. Typically true when the dashboard is showing.
  35. /// </summary>
  36. /// <returns>Returns true if the Unity app should render with low resources.</returns>
  37. public override bool ShouldAppRenderWithLowResources()
  38. {
  39. // TODO: Compare with Oculus and SteamVR
  40. return false;
  41. }
  42. #endif
  43. }
  44. }