Type Definition glium::debug::DebugCallback

source ·
pub type DebugCallback = Box<dyn FnMut(Source, MessageType, Severity, u32, bool, &str)>;
Expand description

Represents a callback that can be used for the debug output feature of OpenGL.

The first three parameters are self-explanatory. The fourth parameter is an identifier for this message whose meaning is implementation-defined. The fifth parameter indicates whether glium is already handling any possible error condition, so you don’t need to print an error. The last parameter is a message generated by the OpenGL implementation.