Releases: rust-windowing/glutin
Releases · rust-windowing/glutin
Glutin Version v0.29.1
- Fix build failures when building from crates.io
Glutin Version v0.29.0
- Fix crash when creating OpenGLES context without explicit version.
- Add
buffer_age
method onWindowedContext
. - Return an
Err
instead of panicking when surfaceless GLX context creation fails on Linux. - Fix compilation on Android:
- Switch from
StaticStructGenerator
toStructGenerator
to dynamically load symbols. - Replace
android_glue
dependency withraw-window-handle
, and remove broken lifecycle event handling. - Glutin can now be used on Android, however, the application must ensure it only creates the
Context
following a winitEvent::Resumed
event, and destroys theContext
in response to aEvent::Suspended
event.
- Switch from
- Updated winit dependency to 0.27.0. See winit's CHANGELOG for more info.
- On Windows,
build_raw_context
now usesisize
forhwnd
to follow winit change.
Glutin Version v0.28.0
- On Windows, fixed a panic for headless contexts because of active drag-and-drop (OleInitialize failed! Result was:
RPC_E_CHANGED_MODE
) - Updated winit dependency to 0.26.0. See winit's CHANGELOG for more info.
v0.27.0
- Updated winit dependency to 0.25.0. See winit's CHANGELOG for more info.
Glutin Version 0.26.0
- Updated winit dependency to 0.24.0. See winit's CHANGELOG for more info.
Glutin Version 0.25.1
- X11 and Wayland are now optional features (enabled by default)
v0.25.0
- Updated winit dependency to 0.23.0. See winit's CHANGELOG for more info.
- Avoid loading libEGL.dll from PATH on Windows.
v0.21.0
- Added
treat_as_current
function. - Breaking: Replaced
CreationErrorPair
enum variant withCreationErrors
. - Added
Clone
toContextBuilder
. - Added headless example.
- Removed internal code relating to libcaca.
- Implemented
Debug
on all public facing types. - Dropping contexts on platforms using egl and/or glx no longer resets the
current context, if the context dropped wasn't the current context. - Added context sharing support to MacOS.
- Breaking: Removed
ContextTrait
. - Breaking: Renamed
OsMesaContextExt
toHeadlessContextExt
. Added functions
for using egl-surfaceless. - Breaking: Changed
WindowedContext
andRawContext
into typedefs of
ContextWrapper
. - Breaking: Removed
new_windowed
andnew_headless
fromWindowedContext
andContext
, respectively. - Breaking: Added two new types,
NotCurrent
andPossiblyCurrent
,
whichRawContext
,WindowedContext
,ContextBuilder
andContext
are now
generic over. - Added
{make,treat_as}_not_current
function to{Raw,Windowed,}Context
. - We now load
libGL.so
instead oflibGLX.so
. - Fixed bug where we drop the hidden window belonging to a headless context on
on X11 and/or Wayland before the actual context. - "Fixed" bug where we will close
EGLDisplay
s while they are still in use by
others. Angry and/or salty rant can be found inglutin/src/api/egl/mod.rs
,
you can't miss it. - Breaking:
WindowedContext
s now deref toContext
, notWindow
.
Please use.window()
to access the window.
v0.20.0
- We no longer load
libEGL.so
andlibGL.so
multiple times. - Fixes
Context::is_current
incorrectly returningfalse
. - Made
ContextBuilder
'spf_reqs
public. - Breaking: Renamed
GlContext{,Ext}
toContextTrait{,Ext}
. - Breaking: Renamed
GlWindow
toWindowedContext
. - Implemented context sharing support for Windows and Linux.
- Added support for contexts made from raw parts for Windows and Linux.
- Breaking: Removed
shareable_with_windowed_contexts
. Now you must build
OsMesa contexts via a separate extension. - Added
ContextBuilder::build_{windowed,headless}
methods. - Breaking: Renamed
Context::new
toContext::new_headless
.new_headless
now accepts dimensions for the off-screen surface backing it. - Breaking: Renamed
GlWindow::new
toWindowedContext::new_windowed
. - On X11 and Wayland, you can now use shared contexts, however, one limitation
of the Wayland backend is that all shared contexts must use the same events
pool as each other. - Added context sharing support to windows.
- Improved docs.
- Refactored code to be more consistent/cleaner. Ran rustfmt on everything.
- Added NetBSD support.
- Breaking: Removed
new_shared
function fromContext
andGlWindow
, in favor ofnew
. - Added
build
method toContextBuilder
. - Added
get_egl_display
method toGlContextExt
trait and its implementation for platforms. - Removed minimum supported Rust version guarantee.
NoBackendAvailable
is nowSync
, as a resultCreationError
is alsoSync
.- Update winit dependency to 0.19.0. See winit's CHANGELOG for more info.
v0.19.0
- Breaking: The entire API for headless contexts has been removed. Please instead use
Context::new()
when trying to make a context without a visible window. Also removedheadless
feature. - Breaking: Types implementing the
GlContext
trait must now be sized. - Breaking: Added new
CreationErrorPair
enum variant to enumCreationError
. - Remove requirement for EGL dev packages on Wayland.
- Update winit dependency to 0.18.0. See winit's CHANGELOG for more info.