MaxstARSDK  3.5.0
MaxstARUtils.cs
1 /*==============================================================================
2 Copyright 2017 Maxst, Inc. All Rights Reserved.
3 ==============================================================================*/
4 
5 using System;
6 using System.Collections.Generic;
7 using System.Linq;
8 using System.Text;
9 using System.IO;
10 using UnityEngine;
11 using UnityEngine.Rendering;
12 
13 namespace maxstAR
14 {
18  public class MaxstARUtils
19  {
20  // Dll Name
21  internal const string MaxstARStaticLibName = "__Internal";
22  internal const string MaxstARSharedLibName = "MaxstAR";
23 
24  // Path
25  internal const string ImageTargetTexturePath = "Assets/Editor/MaxstAR/Textures";
26  internal const string MarkerTargetTexturePath = "Assets/Editor/MaxstAR/Marker";
27 
28  internal static bool IsDirectXAPI()
29  {
30  return (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D9 ||
31  SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D12 ||
32  SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D11);
33  }
34 
35  internal const int NATIVE_RENDER_EVENT_DRAW_BG_GL = 0x10000;
36  internal const int NATIVE_RENDER_EVENT_DRAW_BG_DX = 0x10001;
37  internal const int NATIVE_RENDER_EVENT_DRAW_ZOMBIE_GL = 0x20000;
38  internal const int NATIVE_RENDER_EVENT_DRAW_ZOMBIE_DX = 0x20001;
39  }
40 }
Define constant values
Definition: MaxstARUtils.cs:18