[OpenTK] Introduce OpenTK (#336)
[platform/core/csapi/tizenfx.git] / external / src / OpenTK / OpenTK / Graphics / GraphicsContextVersion.cs
1 //
2 // The Open Toolkit Library License
3 //
4 // Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted.
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to deal
8 // in the Software without restriction, including without limitation the rights to
9 // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10 // the Software, and to permit persons to whom the Software is furnished to do
11 // so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included in all
14 // copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 // OTHER DEALINGS IN THE SOFTWARE.
24 //
25
26 using System;
27
28 namespace OpenTK.Graphics
29 {
30     /// <summary>
31     /// Defines the version information of a GraphicsContext.
32     /// </summary>
33     public sealed class GraphicsContextVersion
34     {
35         internal GraphicsContextVersion(int minor, int major, string vendor, string renderer)
36         {
37             Minor = minor;
38             Major = major;
39             Vendor = vendor;
40             Renderer = renderer;
41         }
42
43         /// <summary>
44         /// Gets a System.Int32 indicating the minor version of a GraphicsContext instance.
45         /// </summary>
46         public int Minor { get; private set; }
47
48         /// <summary>
49         /// Gets a System.Int32 indicating the major version of a GraphicsContext instance.
50         /// </summary>
51         public int Major { get; private set; }
52
53         /// <summary>
54         /// Gets a System.String indicating the vendor of a GraphicsContext instance.
55         /// </summary>
56         public string Vendor { get; private set; } = String.Empty;
57
58         /// <summary>
59         /// Gets a System.String indicating the renderer of a GraphicsContext instance.
60         /// </summary>
61         public string Renderer { get; private set; } = String.Empty;
62     }
63 }