Class GLHelpers
Helper OpenGL functions.
Inherited Members
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
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
Instance
Gets the singleton instance.
Declaration
public static GLHelpers Instance { get; }
Property Value
Type | Description |
---|---|
GLHelpers |
Methods
CheckError(GraphicsContext)
Checks the error.
Declaration
public void CheckError(GraphicsContext context)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
context | The graphics context. |
GetCurrentPlatfom()
Get the current Platform.
Declaration
public GLHelpers.OS GetCurrentPlatfom()
Returns
GetDepthBits(ValidationLayer, PixelFormat, out int, out int)
Get the depth size on stencil size from pixel format.
Declaration
public void GetDepthBits(ValidationLayer validationLayer, PixelFormat value, out int depthSize, out int stencilSize)
Parameters
Type | Name | Description |
---|---|---|
Validation |
validationLayer | The validation layer. |
Pixel |
value | The pixel format. |
int | depthSize | Output depth size. |
int | stencilSize | Output stencil size. |
IsIntegerFormat(PixelFormat)
Indicats if the specified format is associated to an integer format.
Declaration
public bool IsIntegerFormat(PixelFormat format)
Parameters
Type | Name | Description |
---|---|---|
Pixel |
format | The format. |
Returns
Type | Description |
---|---|
bool | True if the format is integer. |