BizHawk/BizHawk.Emulation.Cores/Consoles/Nintendo/Gameboy/Gambatte.IVideoProvider.cs

30 lines
615 B
C#
Raw Normal View History

2017-04-25 15:42:11 +00:00
namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
{
public partial class Gameboy
{
/// <summary>
/// stored image of most recent frame
/// </summary>
2017-04-25 15:42:11 +00:00
private readonly int[] VideoBuffer = new int[160 * 144];
public int[] GetVideoBuffer()
{
return VideoBuffer;
}
2017-04-25 15:42:11 +00:00
public int VirtualWidth => 160; // only sgb changes this, which we don't emulate here
2017-04-25 15:42:11 +00:00
public int VirtualHeight => 144;
2017-04-25 15:42:11 +00:00
public int BufferWidth => 160;
2017-04-25 15:42:11 +00:00
public int BufferHeight => 144;
2017-04-25 15:42:11 +00:00
public int BackgroundColor => 0;
public int VsyncNum => 262144;
public int VsyncDen => 4389;
}
}