2011-10-31 05:36:24 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.ObjectModel;
|
2012-09-04 08:31:17 +00:00
|
|
|
using System.Linq;
|
2011-11-03 12:37:07 +00:00
|
|
|
using ANX.Framework.NonXNA;
|
2011-10-31 05:36:24 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-10-31 05:36:24 +00:00
|
|
|
|
|
|
|
namespace ANX.Framework.Graphics
|
|
|
|
{
|
|
|
|
public sealed class GraphicsAdapter
|
|
|
|
{
|
2012-09-04 08:31:17 +00:00
|
|
|
public static ReadOnlyCollection<GraphicsAdapter> Adapters
|
|
|
|
{
|
|
|
|
get;
|
|
|
|
private set;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static GraphicsAdapter DefaultAdapter
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return Adapters.Where(a => a.IsDefaultAdapter).First<GraphicsAdapter>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static bool UseNullDevice { get; set; }
|
|
|
|
public static bool UseReferenceDevice { get; set; }
|
|
|
|
public int DeviceId { get; set; }
|
|
|
|
public string DeviceName { get; set; }
|
|
|
|
public bool IsDefaultAdapter { get; set; }
|
|
|
|
public int Revision { get; set; }
|
|
|
|
public int SubSystemId { get; set; }
|
|
|
|
public int VendorId { get; set; }
|
|
|
|
|
|
|
|
public DisplayMode CurrentDisplayMode
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Description
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public bool IsWideScreen
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public IntPtr MonitorHandle
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public DisplayModeCollection SupportedDisplayModes { get; set; }
|
2011-11-03 12:37:07 +00:00
|
|
|
|
|
|
|
static GraphicsAdapter()
|
2012-09-04 08:31:17 +00:00
|
|
|
{
|
|
|
|
var creator = AddInSystemFactory.Instance.GetDefaultCreator<IRenderSystemCreator>();
|
|
|
|
Adapters = new ReadOnlyCollection<GraphicsAdapter>(creator.GetAdapterList());
|
2011-10-31 05:36:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public bool IsProfileSupported(GraphicsProfile graphicsProfile)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-09-04 08:31:17 +00:00
|
|
|
public bool QueryBackBufferFormat(GraphicsProfile graphicsProfile, SurfaceFormat format, DepthFormat depthFormat,
|
|
|
|
int multiSampleCount, out SurfaceFormat selectedFormat, out DepthFormat selectedDepthFormat,
|
|
|
|
out int selectedMultiSampleCount)
|
2011-10-31 05:36:24 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2012-09-04 08:31:17 +00:00
|
|
|
public bool QueryRenderTargetFormat(GraphicsProfile graphicsProfile, SurfaceFormat format, DepthFormat depthFormat,
|
|
|
|
int multiSampleCount, out SurfaceFormat selectedFormat, out DepthFormat selectedDepthFormat,
|
|
|
|
out int selectedMultiSampleCount)
|
2011-10-31 05:36:24 +00:00
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|