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.

42 lines
1.6 KiB

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