コード例 #1
0
    /// <summary>
    /// Gets the ARToolKit version as a string, such as "4.5.1".
    /// Must not be called prior to arwInitialiseAR().
    /// </summary>
    /// <returns>true if successful, false if an error occurred.</returns>
    public string arwGetARToolKitVersion()
    {
        StringBuilder sb = new StringBuilder(128);
        bool          ok;

        ok = ARNativePlugin.arwGetARToolKitVersion(sb, sb.Capacity);
        if (ok)
        {
            return(sb.ToString());
        }
        else
        {
            return("unknown");
        }
    }
コード例 #2
0
    public static string arwGetARToolKitVersion()
    {
        StringBuilder sb = new StringBuilder(128);
        bool          ok;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            ok = ARNativePluginStatic.arwGetARToolKitVersion(sb, sb.Capacity);
        }
        else
        {
            ok = ARNativePlugin.arwGetARToolKitVersion(sb, sb.Capacity);
        }
        if (ok)
        {
            return(sb.ToString());
        }
        else
        {
            return("unknown");
        }
    }