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.

38 lines
1.5 KiB

  1. // Fallback System|SDK_Fallback|001
  2. namespace VRTK
  3. {
  4. /// <summary>
  5. /// The Fallback System SDK script provides a fallback collection of methods that return null or default system values.
  6. /// </summary>
  7. /// <remarks>
  8. /// This is the fallback class that will just return default values.
  9. /// </remarks>
  10. [SDK_Description("Fallback", null, null, null)]
  11. public class SDK_FallbackSystem : SDK_BaseSystem
  12. {
  13. /// <summary>
  14. /// The IsDisplayOnDesktop method returns true if the display is extending the desktop.
  15. /// </summary>
  16. /// <returns>Returns true if the display is extending the desktop</returns>
  17. public override bool IsDisplayOnDesktop()
  18. {
  19. return false;
  20. }
  21. /// <summary>
  22. /// The ShouldAppRenderWithLowResources method is used to determine if the Unity app should use low resource mode. Typically true when the dashboard is showing.
  23. /// </summary>
  24. /// <returns>Returns true if the Unity app should render with low resources.</returns>
  25. public override bool ShouldAppRenderWithLowResources()
  26. {
  27. return false;
  28. }
  29. /// <summary>
  30. /// The ForceInterleavedReprojectionOn method determines whether Interleaved Reprojection should be forced on or off.
  31. /// </summary>
  32. /// <param name="force">If true then Interleaved Reprojection will be forced on, if false it will not be forced on.</param>
  33. public override void ForceInterleavedReprojectionOn(bool force)
  34. {
  35. }
  36. }
  37. }