BizHawk/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IVideoProvider.cs

26 lines
864 B
C#
Raw Normal View History

2015-03-21 21:45:12 +00:00
using BizHawk.Emulation.Common;
using Jellyfish.Virtu;
namespace BizHawk.Emulation.Cores.Computers.AppleII
{
2015-05-18 00:14:00 +00:00
public partial class AppleII : IVideoProvider
2015-03-21 21:45:12 +00:00
{
2015-05-18 00:14:00 +00:00
private Jellyfish.Virtu.Services.VideoService _V
{ get { return _machine.Video.VideoService; } }
2015-03-21 21:45:12 +00:00
2015-05-18 00:14:00 +00:00
int[] IVideoProvider.GetVideoBuffer() { return _V.fb; }
2015-03-21 21:45:12 +00:00
2015-05-18 00:14:00 +00:00
// put together, these describe a metric on the screen
// they should define the smallest size that the buffer can be placed inside such that:
// 1. no actual pixel data is lost
// 2. aspect ratio is accurate
int IVideoProvider.VirtualWidth { get { return 560; } }
int IVideoProvider.VirtualHeight { get { return 384; } }
2015-03-21 21:45:12 +00:00
2015-05-18 00:14:00 +00:00
int IVideoProvider.BufferWidth { get { return 560; } }
int IVideoProvider.BufferHeight { get { return 384; } }
int IVideoProvider.BackgroundColor { get { return 0; } }
2015-03-21 21:45:12 +00:00
}
}