Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IVirtualResolution.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 using SiliconStudio.Core.Mathematics;
6 
7 namespace SiliconStudio.Paradox.Games
8 {
9  /// <summary>
10  /// Interface providing services to deal with the virtual resolution of the game.
11  /// The virtual resolution enables the user to perform rendering independent from the screen resolution.
12  /// </summary>
13  /// <remarks>This use mostly used for UI and 2D rendering.</remarks>
14  public interface IVirtualResolution
15  {
16  /// <summary>
17  /// Gets or sets the screen virtual resolution to use for this game.
18  /// </summary>
19  Vector3 VirtualResolution { get; set; }
20 
21  /// <summary>
22  /// Occurs when the virtual resolution changed.
23  /// </summary>
24  event EventHandler<EventArgs> VirtualResolutionChanged;
25  }
26 }
Interface providing services to deal with the virtual resolution of the game. The virtual resolution ...
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
EventHandler< EventArgs > VirtualResolutionChanged
Occurs when the virtual resolution changed.