Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

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