Added summeries to SM.OGL
This commit is contained in:
parent
2aa12f8d25
commit
16366fa015
15 changed files with 363 additions and 27 deletions
|
|
@ -3,18 +3,42 @@ using OpenTK.Graphics.OpenGL4;
|
|||
|
||||
namespace SM.OGL
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains data about the current OpenGL system.
|
||||
/// </summary>
|
||||
public class GLSystem
|
||||
{
|
||||
private static bool _init = false;
|
||||
|
||||
/// <summary>
|
||||
/// Contains the device version of OpenGL.
|
||||
/// </summary>
|
||||
public static Version DeviceVersion { get; private set; }
|
||||
/// <summary>
|
||||
/// Get/Sets the forced version for OpenGL.
|
||||
/// <para>Needs to be set before init a window.</para>
|
||||
/// </summary>
|
||||
public static Version ForcedVersion { get; set; } = new Version();
|
||||
|
||||
/// <summary>
|
||||
/// Contains the shader version for GLSL.
|
||||
/// </summary>
|
||||
public static Version ShadingVersion { get; private set; }
|
||||
/// <summary>
|
||||
/// Contains the extensions for OpenGL.
|
||||
/// </summary>
|
||||
public static string[] Extensions { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Checks if proper Debugging is for this system available.
|
||||
/// <para>Determent, if the system has the "KHR_debug"-extension. </para>
|
||||
/// </summary>
|
||||
public static bool Debugging { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initialize the system data.
|
||||
/// <para>Does nothing after the data was already collected.</para>
|
||||
/// </summary>
|
||||
public static void INIT_SYSTEM()
|
||||
{
|
||||
if (_init) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue