Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
WindowContext.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 SiliconStudio.Paradox.Games;
4 
5 namespace SiliconStudio.Paradox.Graphics
6 {
7  /// <summary>
8  /// A platform specific window handle.
9  /// </summary>
10  public class WindowHandle
11  {
12  /// <summary>
13  /// Initializes a new instance of the <see cref="WindowHandle"/> class.
14  /// </summary>
15  /// <param name="context">The context.</param>
16  /// <param name="nativeHandle">The native handle.</param>
17  public WindowHandle(AppContextType context, object nativeHandle)
18  {
19  Context = context;
20  NativeHandle = nativeHandle;
21  }
22 
23  /// <summary>
24  /// The context.
25  /// </summary>
26  public readonly AppContextType Context;
27 
28  /// <summary>
29  /// The native handle.
30  /// </summary>
31  public readonly object NativeHandle;
32  }
33 }
AppContextType
Type of a GameContext.
A platform specific window handle.
readonly object NativeHandle
The native handle.
WindowHandle(AppContextType context, object nativeHandle)
Initializes a new instance of the WindowHandle class.
readonly AppContextType Context
The context.