GL module

gl_label_object

proceduresince 0.31.0Source

Gives a GL object a name that debuggers and error messages show.

Example↗
texture: GLuint;
gl_label_object(GL_TEXTURE, texture, "player sprite");

This one is only checked to compile, not run.

gl_label_object :: (identifier: GLenum, name: GLuint, label: string)

Parameters

identifier: GLenum
name: GLuint
label: string

See also