OpenTK v4.7.1 Release Notes
-
๐ฅ BREAKING: Simplifications to the
Monitors
api, hopefully it's easier to work with now. Old functions are marked[Obsolete]
with directions for equivalent operations with the new API. (@NogginBops)๐ฅ BREAKING: Changed
Span<T>
toReadOnlySpan<T>
in OpenAL bindings where appropriate. (@NogginBops)๐ API: Add more information to
MonitorInfo
such as human-readable names and supported video modes. (@NogginBops, @utkumaden)API: Added component-wise division operators for vector types (@NogginBops, @wildniklin)
API: Added missing
One
andZero
static readonly fields toVector3i
(@NogginBops, @wildniklin)API: Implemented
AL_SOFT_loop_points
OpenAL extension. (@NogginBops)๐ Passing
ContextAPI.NoAPI
inNativeWindowSettings.ContextAPI
will not create an OpenGL context. This allows you to useNativeWindow
to create a vulkan context, see #1334. (@arakis, @NogginBops)โ Added warning to documentation that
ClientSize
will not be guaranteed to have updated values in theOnMaximized
andOnMinimized
callbacks. (@NogginBops, @wo80)โก๏ธ Updated to GLFW 3.3.5. (@NogginBops)
๐ FIX: Fix invalid IL generation for some edge case GL ES functions, AOT compiling OpenTK now works correctly!! (@NogginBops, thanks @jkotas for helping me understand the issue)
๐ FIX: Fix
Box3
documentation referencing 2D concepts. (@CaiB)๐ FIX: Fixed
MathHelper.MapRange
so that it no longer always throws division by zero exceptions. (@jdmisek)๐ FIX: Fixed
OnUnload
so that it's acutally called in all cases when closing the window. (@NogginBops, @adfcf)๐ FIX: Wrap all callbacks in exception handlers that will then rethrow these exceptions at the end of
NativeWindow.ProcessEvents()
so that exceptions don't unwind into native calls which is a problem on non-windows platforms. (@NogginBops, @PJB3005)๐ FIX: Fix
NativeWindow.IsExiting
andNativeWindow.Exists
so that they actually contain correct values. (@NogginBops)๐ FIX: Fix
Box2d.Translate
andBox2i.Translate
, this fix also fixes setting theBox2d.Center
andBox2i.Center
properties. (@NogginBops, @yts233)๐ FIX: Made JoystickCallback still work when multiple windows are used. (@TheBlubb14)
๐ FIX: The MonitorCallback no longer gets garbage collected and crashes the program when called. (@NogginBops)
๐ Deprecated the
Closed
event and thenOnClosed
virtual method, they where never called and now we explicitly say so. (@NogginBops)๐ Deprecated
NativeWindowSettings.IsFullscreen
, useNativeWindowSettings.WindowState
instead. (@NogginBops)โก๏ธ Deprecated
NativeWindowSettings.IsMultiThreaded
, Render/Update split isn't a great idea then multithreading and users can easily spin up an "update" thread themselves. (@NogginBops)