コード例 #1
0
ファイル: Technique.cs プロジェクト: wellsanin1/Game-Engine
 public GPUVendorRule(GPUVendor v, Technique.IncludeOrExclude ie) : this(OgrePINVOKE.new_Technique_GPUVendorRule__SWIG_1((int)v, (int)ie), true)
 {
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: Technique.cs プロジェクト: wellsanin1/Game-Engine
 public void removeGPUVendorRule(GPUVendor vendor)
 {
     OgrePINVOKE.Technique_removeGPUVendorRule(swigCPtr, (int)vendor);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
ファイル: Technique.cs プロジェクト: wellsanin1/Game-Engine
 public void addGPUVendorRule(GPUVendor vendor, Technique.IncludeOrExclude includeOrExclude)
 {
     OgrePINVOKE.Technique_addGPUVendorRule__SWIG_0(swigCPtr, (int)vendor, (int)includeOrExclude);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public void setVendor(GPUVendor v)
 {
     OgrePINVOKE.RenderSystemCapabilities_setVendor(swigCPtr, (int)v);
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
        public GPUVendor getVendor()
        {
            GPUVendor ret = (GPUVendor)OgrePINVOKE.RenderSystemCapabilities_getVendor(swigCPtr);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
        public static string vendorToString(GPUVendor v)
        {
            string ret = OgrePINVOKE.RenderSystemCapabilities_vendorToString((int)v);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
        public static GPUVendor vendorFromString(string vendorString)
        {
            GPUVendor ret = (GPUVendor)OgrePINVOKE.RenderSystemCapabilities_vendorFromString(vendorString);

            if (OgrePINVOKE.SWIGPendingException.Pending)
            {
                throw OgrePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
 public Screen[] Screens;         // Bounds for games, Working area for fomrs
 public GraphicsCard()
 {
     Name           = "Unknown";
     Vendor         = GPUVendor.Unknown;
     Vram           = 0;
     Clock          = 0;
     MemoryClock    = 0;
     BusWidth       = 0;
     Shaders        = 0;
     ROPs           = 0;
     TMUs           = 0;
     MemoryType     = "Unknown";
     DirectXSupport = "Unknown";
     Screens        = Screen.AllScreens;
 }
コード例 #9
0
        private static GPUInfo CheckVendor(GPUVendor vendor, string search, string[] goodArray, string[] middleArray)
        {
            var gpuQuality = GPUQuality.Low;

            if (InArray(search, goodArray))
            {
                gpuQuality = GPUQuality.Good;
            }
            else if (InArray(search, middleArray))
            {
                gpuQuality = GPUQuality.Middle;
            }

            return(new GPUInfo()
            {
                Quality = gpuQuality,
                Vendor = vendor
            });
        }
コード例 #10
0
ファイル: HardwareCaps.cs プロジェクト: axiom3d/axiom
 /// <summary>
 ///
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 internal static string VendorToString(GPUVendor v)
 {
     return(ScriptEnumAttribute.GetScriptAttribute((int)v, typeof(GPUVendor)));
 }
コード例 #11
0
ファイル: Technique.cs プロジェクト: WolfgangSt/axiom
 public GPUVendorRule( GPUVendor v, bool ie )
     : this()
 {
     Vendor = v;
     Include = ie;
 }