2016-12-07 19:21:18 +00:00
|
|
|
|
namespace BizHawk.Emulation.Common
|
|
|
|
|
{
|
2016-12-14 15:11:07 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A default IVideoProvider that simply returns
|
|
|
|
|
/// a black screen at an arbitruary size
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <seealso cref="IVideoProvider" />
|
2016-12-07 19:21:18 +00:00
|
|
|
|
public class NullVideo : IVideoProvider
|
|
|
|
|
{
|
|
|
|
|
public int[] GetVideoBuffer()
|
|
|
|
|
{
|
|
|
|
|
return new int[BufferWidth * BufferHeight];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int VirtualWidth { get { return 256; } }
|
|
|
|
|
public int VirtualHeight { get { return 192; } }
|
|
|
|
|
|
|
|
|
|
public int BufferWidth { get { return 256; } }
|
|
|
|
|
public int BufferHeight { get { return 192; } }
|
|
|
|
|
|
|
|
|
|
public int BackgroundColor { get { return 0; } }
|
|
|
|
|
|
2016-12-12 19:43:56 +00:00
|
|
|
|
private static NullVideo _nullVideo = new NullVideo();
|
|
|
|
|
|
2016-12-07 19:21:18 +00:00
|
|
|
|
public static NullVideo Instance
|
|
|
|
|
{
|
2016-12-12 19:43:56 +00:00
|
|
|
|
get { return _nullVideo; }
|
2016-12-07 19:21:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|