Search Results for

    Show / Hide Table of Contents

    Class GLHelpers

    Helper functions for OpenGL.

    Inheritance
    object
    GLHelpers
    Namespace: Evergine.OpenGL
    Assembly: Evergine.OpenGL.dll
    Syntax
    public class GLHelpers

    Properties

    GLGetError

    Gets or sets the call to "glGetError".

    Declaration
    public static Func<uint> GLGetError { get; set; }
    Property Value
    Type Description
    Func<uint>

    GetGLVersion

    Gets or sets the function to retrieve the OpenGL version encoded as: major * 100 + minor * 10.

    Declaration
    public static Func<int> GetGLVersion { get; set; }
    Property Value
    Type Description
    Func<int>

    Instance

    Gets the singleton instance.

    Declaration
    public static GLHelpers Instance { get; }
    Property Value
    Type Description
    GLHelpers

    Methods

    CheckError(GraphicsContext)

    Checks for errors.

    Declaration
    public void CheckError(GraphicsContext context)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context.

    GetDepthBits(ValidationLayer, PixelFormat, out int, out int)

    Gets the depth size and stencil size from the pixel format.

    Declaration
    public void GetDepthBits(ValidationLayer validationLayer, PixelFormat value, out int depthSize, out int stencilSize)
    Parameters
    Type Name Description
    ValidationLayer validationLayer

    The validation layer.

    PixelFormat value

    The pixel format.

    int depthSize

    The output depth size.

    int stencilSize

    The output stencil size.

    IsIntegerFormat(PixelFormat)

    Indicates if the specified format is associated with an integer format.

    Declaration
    public bool IsIntegerFormat(PixelFormat format)
    Parameters
    Type Name Description
    PixelFormat format

    The format.

    Returns
    Type Description
    bool

    True if the format is an integer.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX