mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Use GLFW instead of OpenTK windows * Seems to work pretty well now. * Fix stackalloc issue on Framework. * Add GLFW project to sln. * Fix package downgrade. * Fix SLN more. * Please work. * Fix C# version error.
51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
//
|
|
// VideoMode.cs
|
|
//
|
|
// Copyright (C) 2018 OpenTK
|
|
//
|
|
// This software may be modified and distributed under the terms
|
|
// of the MIT license. See the LICENSE file for details.
|
|
//
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace OpenToolkit.GraphicsLibraryFramework
|
|
{
|
|
/// <summary>
|
|
/// Replicated handle to a GLFW VideoMode.
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
|
public struct VideoMode
|
|
{
|
|
/// <summary>
|
|
/// The width, in screen coordinates, of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int Width;
|
|
|
|
/// <summary>
|
|
/// The height, in screen coordinates, of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int Height;
|
|
|
|
/// <summary>
|
|
/// The bit depth of the red channel of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int RedBits;
|
|
|
|
/// <summary>
|
|
/// The bit depth of the green channel of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int GreenBits;
|
|
|
|
/// <summary>
|
|
/// The bit depth of the blue channel of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int BlueBits;
|
|
|
|
/// <summary>
|
|
/// The refresh rate, in Hz, of the <see cref="VideoMode"/>.
|
|
/// </summary>
|
|
public int RefreshRate;
|
|
}
|
|
}
|