Esempio n. 1
0
 public static bool IsSupported(ARConfigBase config)
 {
     return(true);
 }
Esempio n. 2
0
 public static void Resume(ARConfigBase config)
 {
     Config(config);
     Resume();
 }
Esempio n. 3
0
 /**
  * \if english
  * @brief Configures the session.
  *
  * The default configuration of session is \link ARWorldTrackingConfig \endlink. Application can change this
  * as their need and call Resume() after configuring.
  *
  * <b>Note: </b>
  * \arg The enable item, such as \link ARConfigBase.EnableDepth \endlink and
  * \link ARConfigBase.EnableMask \endlink, may be changed after calling this function. Application should check
  * these items to find which item is actually enabled.
  * \arg Currently, HUAWEI AR Engine does not support to change the configuration once Resume() is called.
  * Alternatively, application can stop the old session, create a new one and config it with other configurations.
  * @param config Application specified configuration.
  * \else
  * @brief 配置会话。
  *
  * 默认的配置是\link ARWorldTrackingConfig \endlink。应用可以根据自己的需求选择。
  *
  * <b>注意:</b>
  * \arg 调用该函数后,配置中的使能项,例如\link ARConfigBase.EnableDepth \endlink和
  * \link ARConfigBase.EnableMask \endlink 可能会被改变。应用应该使用后,检查关心的选项以便确认真正的使能项。
  * \arg 目前,HUAWEI AR Engine不支持在 Resume()后动态改变使用的配置。应用可以通过关闭之前的会话,开启新的会话后重新
  * 配置。
  * @param config 应用指定的配置。
  * \endif
  * @exception ARUnSupportedConfigurationException \copybrief ARUnSupportedConfigurationException
  */
 public static void Config(ARConfigBase config)
 {
     ARSessionManager.Instance.Config(config);
 }