gl-error ( -- ) - Factor Documentation (original) (raw)

gl-error ( -- )
Factor handbook » UI framework » Implementing new gadgets » Customizing gadget appearance » Implementing custom drawing logic » OpenGL utility words

Prev: OpenGL binding
Next: gl-color ( color -- )

Vocabulary
opengl

Word description
If the most recent OpenGL call resulted in an error, throw a gl-error instance reporting the error.

See also
throw-gl-errors, log-gl-errors, log-gl-error, clear-gl-error-log, reset-gl-functions

Definition

IN: opengl

: gl-error ( -- ) f (gl-error) ; inline