Espresso
Inherits Espresso::ErrorHandling / Espresso::WindowTopic / Espresso::EnumCopy
Lightweight wrapper around GLFW for Crystal.
Constants
Current version of the shard.
Instance methods
Version of GLFW that Espresso was compiled against.
This should match #runtime_version to have consistent/expected behavior.
Version of GLFW that is loaded and in-use by Espresso.
This should match #compiled_version to have consistent/expected behavior.
Cleans up resources used by GLFW and and changes it made to the system. This method must be called after GLFW is no longer used and before the program exits. Once GLFW is terminated, it must be reinitialized before using it again.
Calling this method when GLFW is already terminated does nothing.
A PlatformError can be raised if GLFW couldn't be terminated.
Compiled version string produced by GLFW. Includes the version string and additional compilation and environment information.
Nested types
- Espresso::APIUnavailableError
- Espresso::Bounds
- Espresso::ButtonState
- Espresso::ClientAPI
- Espresso::ContextCreationAPI
- Espresso::ContextRobustness
- Espresso::Coordinates
- Espresso::Cursor
- Espresso::CursorMode
- Espresso::CursorShape
- Espresso::EnumCopy
- Espresso::FormatUnavailableError
- Espresso::FrameSize
- Espresso::GLFWError
- Espresso::GamepadAxis
- Espresso::GamepadButton
- Espresso::GamepadState
- Espresso::GammaRamp
- Espresso::Image
- Espresso::InvalidEnumError
- Espresso::InvalidValueError
- Espresso::Joystick
- Espresso::JoystickConnectEvent
- Espresso::JoystickHatState
- Espresso::Key
- Espresso::KeyState
- Espresso::Keyboard
- Espresso::KeyboardCharEvent
- Espresso::KeyboardCharModsEvent
- Espresso::KeyboardEvent
- Espresso::KeyboardKeyEvent
- Espresso::ModifierKey
- Espresso::Monitor
- Espresso::MonitorConnectEvent
- Espresso::Mouse
- Espresso::MouseButton
- Espresso::MouseButtonEvent
- Espresso::MouseEnterEvent
- Espresso::MouseEvent
- Espresso::MouseMoveEvent
- Espresso::MouseScrollEvent
- Espresso::NoCurrentContextError
- Espresso::NoWindowContextError
- Espresso::NotInitializedError
- Espresso::OpenGLProfile
- Espresso::OutOfMemoryError
- Espresso::PlatformError
- Espresso::Position
- Espresso::ReleaseBehavior
- Espresso::Scale
- Espresso::Size
- Espresso::Timer
- Espresso::VersionUnavailableError
- Espresso::VideoMode
- Espresso::Window
- Espresso::WindowBuilder
- Espresso::WindowClosingEvent
- Espresso::WindowDropEvent
- Espresso::WindowEvent
- Espresso::WindowFocusEvent
- Espresso::WindowIconifyEvent
- Espresso::WindowMaximizeEvent
- Espresso::WindowMoveEvent
- Espresso::WindowRefreshEvent
- Espresso::WindowResizeEvent
- Espresso::WindowScaleEvent
- Espresso::WindowTopic