Module beamui.graphics.gl.errors

Utilities for OpenGL error checking.

Import line

import beamui.graphics.gl.errors;

Functions

NameDescription
checkError(context, functionName, line) Check for GL error. If an error occured, reports about it in the logger and returns true
checkFramebuffer(target) Check GL framebuffer status and log if it's not ready for use. Returns true if ready
glErrorToString(err) Convert numeric GL error code to a human-readable symbolic name

Aliases

NameTypeDescription
checkgl func Convenient wrapper around glGetError(). Usage: checkgl!glFunction(funcParams);