/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
namespace TouchScript.Devices.Display
{
///
/// Represents a device which is used to display touch interface. Incapsulating such properties as .
///
///
/// TouchScript uses display device to calculate gesture properties based on device's DPI. This makes it possible to have the same experience on mobile devices with high DPI and large touch surfaces which have low DPI.
/// Current instance of can be accessed via .
///
public interface IDisplayDevice
{
///
/// Name of the display device.
///
string Name { get; }
///
/// DPI of the game based on and .
///
float DPI { get; }
///
/// Native DPI of the display device.
///
float NativeDPI { get; }
///
/// Native resolution of the display device.
///
Vector2 NativeResolution { get; }
///
/// Forces to recalculate .
///
void UpdateDPI();
}
}