BizHawk/BizHawk.Emulation.Cores/Consoles/Atari/lynx/Lynx.IVideoProvider.cs

28 lines
576 B
C#
Raw Normal View History

2017-04-24 16:51:59 +00:00
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Atari.Lynx
{
2017-04-15 20:37:30 +00:00
public partial class Lynx : IVideoProvider
{
2017-04-24 16:51:59 +00:00
private const int Width = 160;
private const int Height = 102;
2017-04-24 16:51:59 +00:00
private readonly int[] _videobuff = new int[Width * Height];
2017-04-15 20:37:30 +00:00
public int[] GetVideoBuffer()
{
2017-04-24 16:51:59 +00:00
return _videobuff;
2017-04-15 20:37:30 +00:00
}
2017-04-24 16:51:59 +00:00
public int VirtualWidth => BufferWidth;
2017-04-24 16:51:59 +00:00
public int VirtualHeight => BufferHeight;
2017-04-24 16:51:59 +00:00
public int BufferWidth { get; }
2017-04-24 16:51:59 +00:00
public int BufferHeight { get; }
2017-04-24 16:51:59 +00:00
public int BackgroundColor => unchecked((int)0xff000000);
2017-04-15 20:37:30 +00:00
}
}