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.

43 lines
1.7 KiB

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