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
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 the error.
Declaration
public void CheckError(GraphicsContext context)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
GetCurrentPlatfom()
Get the current Platform.
Declaration
public GLHelpers.OS GetCurrentPlatfom()
Returns
Type | Description |
---|---|
GLHelpers.OS | The platform. |
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 |
---|---|---|
ValidationLayer | validationLayer | The validation layer. |
PixelFormat | 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 |
---|---|---|
PixelFormat | format | The format. |
Returns
Type | Description |
---|---|
bool | True if the format is integer. |