Example #1
0
        /// <summary>True if the device uses OpenGL or OpenGL ES backend</summary>
        public static bool isGlDevice(this IRenderDevice device)
        {
            var caps = device.GetDeviceCaps();

            switch (caps.DevType)
            {
            case RenderDeviceType.GL:
            case RenderDeviceType.GLES:
                return(true);
            }
            return(false);
        }