class Espresso::NotInitializedError

Overview

Error indicating that GLFW has not been initialized.

Initialize GLFW before calling any function that requires initialization. This can be done with:

Espresso.init
# Code that uses GLFW here.
Espresso.terminate

or:

Espresso.run do
  # Code that uses GLFW here.
end

Defined in:

espresso/not_initialized_error.cr

Instance Method Summary

Instance methods inherited from class Espresso::GLFWError

code : LibGLFW::ErrorCode code

Instance Method Detail

def code : LibGLFW::ErrorCode #

Underlying value that represents the error type.


[View source]