class Espresso::NoCurrentContextError


Error indicating that GLFW needs an OpenGL context to operate on, but none is currently set on the calling thread.

Ensure a context is current before calling functions that require a current context. This can be done with:

window =, 600, "GLFW")

or:, 600) do |window|
  # Code that uses the window here.

Defined in:


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]