Opentk/Source/OpenTK/Platform/iPhoneOS/iPhoneDisplayDeviceDriver.cs
2016-06-08 15:15:59 +09:00

35 lines
859 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using OpenTK.Platform;
namespace OpenTK.Platform.iPhoneOS
{
class AndroidDisplayDeviceDriver : IDisplayDeviceDriver
{
static DisplayDevice dev;
static AndroidDisplayDeviceDriver()
{
dev = new DisplayDevice();
dev.IsPrimary = true;
dev.BitsPerPixel = 16;
}
public DisplayDevice GetDisplay(DisplayIndex displayIndex)
{
return (displayIndex == DisplayIndex.First || displayIndex == DisplayIndex.Primary) ? dev : null;
}
public bool TryChangeResolution(DisplayDevice device, DisplayResolution resolution)
{
return false;
}
public bool TryRestoreResolution(DisplayDevice device)
{
return false;
}
}
}