コード例 #1
0
 /// <summary>
 /// Construct a KhronosLogContext.
 /// </summary>
 /// <param name="khronoApiType"></param>
 public KhronosLogContext(Type khronoApiType)
 {
     QueryLogContext(khronoApiType);
     try {
         _LogMap = KhronosLogMap.Load(String.Format("OpenGL.KhronosLogMap{0}.xml", khronoApiType.Name));
     } catch { /* Fail-safe */ }
 }
コード例 #2
0
        /// <summary>
        /// Construct a KhronosLogContext.
        /// </summary>
        /// <param name="khronoApiType"></param>
        public KhronosLogContext(Type khronoApiType)
        {
            QueryLogContext(khronoApiType);
#if !NETCORE && !NETSTANDARD1_4
            try {
                _LogMap = KhronosLogMap.Load(String.Format("OpenGL.KhronosLogMap{0}.xml", khronoApiType.Name));
            } catch { /* Fail-safe */ }
#endif
        }