代码拉取完成,页面将自动刷新
using System;
using System.ComponentModel;
using OpenTK.Windowing.Common;
using OpenTK.Windowing.Desktop;
namespace engenious
{
/// <summary>
/// A wrapper for a native surface.
/// </summary>
public class NativeSurfaceWrapper : IRenderingSurface
{
/// <summary>
/// Initializes an new instance of the <see cref="NativeSurfaceWrapper"/> class.
/// </summary>
/// <param name="windowInfo">The native window info to wrap.</param>
/// <param name="contextFlags">Thre graphics context flags</param>
/// <exception cref="NotImplementedException">This class is currently not implemented.</exception>
public NativeSurfaceWrapper(IWindowWrapper windowInfo, ContextFlags contextFlags)
{
//TODO implement
WindowInfo = windowInfo;
Context = windowInfo.Context;
Focused = false;
throw new NotImplementedException();
}
/// <inheritdoc />
public IWindowWrapper WindowInfo { get; }
/// <summary>
/// Gets the graphics context for this surface wrapper.
/// </summary>
public IGraphicsContext Context { get; }
/// <inheritdoc />
public void Dispose()
{
throw new NotImplementedException();
}
/// <inheritdoc />
public Point PointToScreen(Point pt)
{
throw new NotImplementedException();
}
/// <inheritdoc />
public Point PointToClient(Point pt)
{
throw new NotImplementedException();
}
/// <inheritdoc />
public Vector2 Vector2ToScreen(Vector2 pt)
{
throw new NotImplementedException();
}
/// <inheritdoc />
public Vector2 Vector2ToClient(Vector2 pt)
{
throw new NotImplementedException();
}
/// <inheritdoc />
public Rectangle ClientRectangle { get; set; }
/// <inheritdoc />
public Size ClientSize { get; set; }
/// <inheritdoc />
public bool Focused { get; }
/// <inheritdoc />
public bool CursorVisible { get; set; }
/// <inheritdoc />
public bool CursorGrabbed { get; set; }
/// <inheritdoc />
public bool Visible { get; set; }
/// <inheritdoc />
public IntPtr Handle => throw new NotSupportedException();
/// <inheritdoc />
public event Action<FrameEventArgs>? RenderFrame;
/// <inheritdoc />
public event Action<FrameEventArgs>? UpdateFrame;
/// <inheritdoc />
public event Action<CancelEventArgs>? Closing;
/// <inheritdoc />
public event Action<FocusedChangedEventArgs>? FocusedChanged;
/// <inheritdoc />
public event Action<TextInputEventArgs>? KeyPress;
/// <inheritdoc />
public event Action<ResizeEventArgs>? Resize;
/// <inheritdoc />
public event Action? Load;
/// <inheritdoc />
public event Action<MouseWheelEventArgs>? MouseWheel;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。