GLFWAbstraction.ClientAPI
— TypeEnum of the various possible client APIs which GLFW can use to create an OpenGL (ES) context.
GLFWAbstraction.ContextCreationAPI
— TypeEnum of the various OpenGL (ES) context creation APIs which GLFW may use.
GLFWAbstraction.ContextReleaseBehavior
— TypeEnum of context release behaviors GLFW may employ upon destroying an OpenGL (ES) context.
GLFWAbstraction.ContextRobustness
— TypeContext robustness solutions GLFW may employ when an OpenGL (ES) context fails.
GLFWAbstraction.Monitors
— TypeMonitors
is a meta type designed to query connected physical monitors using Base.getindex
and Base.iterate
.
GLFWAbstraction.OpenGLProfile
— TypeEnum of possible OpenGL profiles.
GLFWAbstraction.WindowEvent
— TypeEnum of various window-related events. These are a relatively low-level abstraction used with the register_window_callback
method. However, a more Julian solution exists. Refer to the documentation's Event System section for more details.
GLFWAbstraction.:×
— Methodlhs×rhs
creates a 2-tuple (lhs, rhs) for a familiar and convenient notation of 2D measures.
GLFWAbstraction.getkeyname
— Methodgetkeyname(named::Key, scancode::Integer)
attempts to retrieve a key's human readable name. If named
is not Key(nothing)
, the name will be reminiscent of the named key. Otherwise, attempts to retrieve the key identified by scancode
.
GLFWAbstraction.on_framebuffer_resize
— MethodCalled when the window's framebuffer has been resized.
GLFWAbstraction.on_key_press
— MethodCalled when a key is pressed down.
GLFWAbstraction.on_key_release
— MethodCalled when a key is released.
GLFWAbstraction.on_key_repeat
— MethodCalled when a key is being held, triggering continuous textual input.
GLFWAbstraction.on_mouse_enter
— MethodCalled when the mouse cursor enters the window's boundaries.
GLFWAbstraction.on_mouse_leave
— MethodCalled when the mouse cursor leaves the window's boundaries.
GLFWAbstraction.on_mouse_move
— MethodCalled when the mouse cursor is moved while within the window's boundaries.
GLFWAbstraction.on_mouse_press
— MethodCalled when a mouse button is pressed down.
GLFWAbstraction.on_mouse_release
— MethodCalled when a mouse button is released.
GLFWAbstraction.on_receive_char
— MethodCalled when a key results in a Unicode character input.
GLFWAbstraction.on_window_close
— MethodCalled when the window is requested to close.
GLFWAbstraction.on_window_content_scale
— MethodCalled when the window's content scale is adjusted.
GLFWAbstraction.on_window_defocus
— MethodCalled when the window loses focus.
GLFWAbstraction.on_window_focus
— MethodCalled when the window gains focus.
GLFWAbstraction.on_window_iconify
— MethodCalled when the window is iconified (minimized to taskbar).
GLFWAbstraction.on_window_maximize
— MethodCalled when the window is maximized.
GLFWAbstraction.on_window_move
— MethodCalled when the window is moved.
GLFWAbstraction.on_window_refresh
— MethodCalled when the window should refresh.
GLFWAbstraction.on_window_resize
— MethodCalled when the window is resized.
GLFWAbstraction.on_window_restore
— MethodCalled when the window is restored, either from being iconified or maximized.
GLFWAbstraction.register_default_window_callbacks
— MethodRegisters the default callbacks for the window. These callbacks forward events to concrete, semantic signatures in a more Julian approach.
GLFWAbstraction.@windowhint
— Macro@windowhint hint value
is a more semantic & Julian, albeit comparatively low-level interface which sets the window creation hint. It is equivalent to GLFW.WindowHint(...)
. However, most hints are can be adjusted post creation through Window
's virtual properties. Some, especially framebuffer context hints, can only be configured prior to creation through this macro.
hint
may be either the desired GLFW hint constant (e.g. RED_BITS
) or a camel-cased version (e.g. RedBits
or redBits
).
value
may be the appropriate value (Integer/Bool) which is passed to the hint directly.
If value
is nothing
, GLFW.DONT_CARE
is passed instead.
If value
is an Enum
, it's Integer(value)
is passed in. This allows setting the hint to a value such as OpenGLAPI
(a ClientAPI
enum value) which is assigned the appropriate GLFW constant.
Example
```julia @windowhint TransparentFramebuffer true @windowhint ClientAPI OpenGLAPI