Add IDpiAwareGLContext.
This commit is contained in:
parent
95cc1648b2
commit
87ab64f727
@ -23,4 +23,20 @@ namespace Dashboard.Drawing.OpenGL
|
||||
/// </summary>
|
||||
event Action Disposed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extension interface for GL contexts in a DPI-aware environment.
|
||||
/// </summary>
|
||||
public interface IDpiAwareGLContext : IGLContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Dpi for current context.
|
||||
/// </summary>
|
||||
public float Dpi { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Scale for the current context. This will be used to scale drawn geometry.
|
||||
/// </summary>
|
||||
public float Scale { get; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user