OpenTK v4.7.2 Release Notes
-
๐ฅ BREAKING: Fixed issue where the
QuaternionD(double, double, double)
ctor produced the wrong quaternion. It now produces the same quaternion asQuaterion(float, float, float)
. (@NogginBops)๐ฅ BREAKING: Fixed
QuaterionD.ToEulerAngles
to now produce the correct result. It now matches the result fromQuaterion.ToEulerAngles
. (@NogginBops)๐ API: Deprecated
NativeWindow.CursorVisible
andNativeWindow.CursorGrabbed
in favor of a unifiedNativeWindow.CursorState
that disallows invalid combinations. (@NogginBops)๐ API: Added
NativeWindowSettings.SrgbCapable
to be able to create a default framebuffer with sRGB capabilities. (@NogginBops)API: Added glfw native access funtions added in glfw 3.1. (@NogginBops)
๐ API: Added
MinimumSize
andMaximumSize
properties toNativeWindow
andNativeWindowSettings
. (@toasty1307)API: Added
NativeWindow.ProcessWindowEvents
static function for processing events manually. Prefer this function (withNativeWindow.ProcessInputEvents
) in a multi-window setup. (@NogginBops)โก๏ธ API: Exposed
NativeWindow.ProcessInputEvents()
so multi-window setups can update input state of all windows before handling events (usingNativeWindow.ProcessWindowEvents
). (@NogginBops)API: Added a proper "main thread" check for glfw. To turn this off,
GLFWProvider.CheckForMainThread
can be set to false. (@NogginBops)API: Added all missing enums to
SizedInternalFormat
. (@NogginBops)API: Added
TextureCubeMapArray
toTextureTarget3d
. (@NogginBops)API: Added
ParameterBuffer
toBufferTarget
. (@NogginBops)API: Added overloads to
MultiDrawElementsIndirectCount
that takes the properDrawElementsType
enum as an argument. (@NogginBops)API: Added overloads to
VertexAttribIFormat
andVertexAttribLFormat
that takeVertexAttribIntegerType
andVertexAttributeDoubleType
respectively. (@BoyBaykiller)API: Added bindings for
NV_mesh_shader
,NV_shading_rate
,NV_primitive_shading_rate
,NV_representative_fragment_test
andNV_scissor_exclusive
extensions. (@BoyBaykiller)API: Enums should now be documented with their minimum version or extension requirements. These are not guaranteed to be 100% accurate but should mostly correct. (@NogginBops)
API: Added
RawMouseMotionAttribute
enum, to be able to control raw mouse motion from GLFW.๐ Fix issue where limiting framerate would cause issues with input functions like
JoystickState.WasButtonPressed
whould have an incorrect value (@NogginBops).โก๏ธ Updated GLFW to 3.3.7. This should fix an issue where UTF-16 code points where sent to OnTextInput causing it to crash. (@NogginBops, @g7ChoGXh)
โก๏ธ If the update loop gets too far behind it no longer tries to make up for lost time. This was typically caused by resizing the window, and or closing the lid of a laptop. (@daerogami)
๐ฆ OpenTK no longer put an upper limit on the
System.Runtime.CompilerServices.Unsafe
package. (@NogginBops)๐ Fixed so
NativeWindowSettings.DepthBits
andNativeWindowSettings.StencilBits
actually affect the resulting backbuffer format. (@NogginBops)๐ Fixed an issue in
Box3i.Contains(Vector3i)
where one of the comparisons where wrong, causing incorrect results. (@BlakkM9)๐ Fixed an issue where
Vector3i.ComponentMin
returned one of the input arguments instead of the proper result. (@Oribow)๐ Fixed OpenAL
Buffer(int, BufferLoopPoint, ReadOnlySpan<int>)
overload to no longer crash. (@NogginBops)