BizHawk/BizHawk.Emulation.Cores/Consoles/Nintendo/GBA/MGBAHawk.IVideoProvider.cs

28 lines
555 B
C#
Raw Normal View History

2017-04-25 16:42:03 +00:00
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Nintendo.GBA
{
public partial class MGBAHawk : IVideoProvider
{
public int[] GetVideoBuffer()
{
2017-04-25 17:00:50 +00:00
return _videobuff;
2017-04-25 16:42:03 +00:00
}
2017-04-25 17:00:50 +00:00
public int VirtualWidth => 240;
public int VirtualHeight => 160;
public int BufferWidth => 240;
public int BufferHeight => 160;
public int BackgroundColor => unchecked((int)0xff000000);
public int VsyncNum => 262144;
public int VsyncDen => 4389;
2017-04-25 17:00:50 +00:00
private readonly int[] _videobuff = new int[240 * 160];
2017-04-25 16:42:03 +00:00
}
}