using System.Drawing;
namespace Dashboard.Drawing.OpenGL
{
///
/// Interface for GL context operations
///
public interface IGLContext
{
///
/// The associated group for context sharing.
///
/// -1 assigns no group.
public int ContextGroup { get; }
///
/// The size of the framebuffer in pixels.
///
public Size FramebufferSize { get; }
///
/// Called when the context is disposed.
///
event Action Disposed;
}
///
/// Extension interface for GL contexts in a DPI-aware environment.
///
public interface IDpiAwareGLContext : IGLContext
{
///
/// Dpi for current context.
///
public float Dpi { get; }
///
/// Scale for the current context. This will be used to scale drawn geometry.
///
public float Scale { get; }
}
}