2025-01-14 18:34:47 +01:00
|
|
|
using System.Drawing;
|
|
|
|
|
2025-02-02 19:58:49 +01:00
|
|
|
namespace Dashboard.OpenGL
|
2025-01-14 18:34:47 +01:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Interface for GL context operations
|
|
|
|
/// </summary>
|
2025-02-02 19:58:49 +01:00
|
|
|
public interface IGLContext : IDeviceContext
|
2025-01-14 18:34:47 +01:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The associated group for context sharing.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>-1 assigns no group.</remarks>
|
|
|
|
public int ContextGroup { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The size of the framebuffer in pixels.
|
|
|
|
/// </summary>
|
|
|
|
public Size FramebufferSize { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Called when the context is disposed.
|
|
|
|
/// </summary>
|
|
|
|
event Action Disposed;
|
2025-01-19 14:48:15 +01:00
|
|
|
|
|
|
|
/// <summary>
|
2025-02-02 19:58:49 +01:00
|
|
|
/// Activate this OpenGL Context.
|
2025-01-19 14:48:15 +01:00
|
|
|
/// </summary>
|
2025-02-02 19:58:49 +01:00
|
|
|
void MakeCurrent();
|
2025-01-19 14:48:15 +01:00
|
|
|
}
|
2025-01-14 18:34:47 +01:00
|
|
|
}
|