Releases: node-3d/glfw-raub
Release 5.2.0
Added optional callback onBeforeWindow
to class Window
constructor options. It is called right before creating every new GLFW window within Window
instance - such as on construction and then on entering/leaving fullscreen. It is intended to manually tweak the GLFW window hints.
Release 5.1.0
Updated dependencies.
Release 5.0.0
Upgraded the GitHub build action and added Linux Aarch64 support.
Add Vulkan API
Implemented the Vulkan related methods.
See index.d.ts
:
const vulkanSupported: () => boolean;
const getRequiredInstanceExtensions: () => string[];
const getInstanceProcAddress: (instance: TVkInstancePtr, name: string) => TVkProcedurePtr;
const getPhysicalDevicePresentationSupport: (
instance: TVkInstancePtr,
physicalDevice: TVkPhysicalDevicePtr,
queueFamily: number,
) => boolean;
const createWindowSurface: (
instance: TVkInstancePtr,
window: TWindowPtr,
allocator: TVkAllocationCallbacksPtr,
) => TVkSurfacePtr;
const vulkanCreateInstance: () => TVkInstancePtr;
const vulkanCreateDevice: () => ({
device: TVkDevicePtr,
physicalDevice: TVkPhysicalDevicePtr,
queueFamily: number,
});
const vulkanDestroyDevice: (instance: TVkInstancePtr, device: TVkDevicePtr) => void;
const vulkanDestroyInstance: (instance: TVkInstancePtr) => void;
See https://www.glfw.org/docs/latest/vulkan_guide.html
There is an example creating a basic Vulkan device: vulkan.js
Update dependencies
Updated dependencies and rebuilt with the latest NAPI and Node 16 LTS.
Update TS Definitions
TS definition adjustments.
Update Build System
Switched to GitHub Actions.
Rebuilt with GitHub Actions.
Updated dependencies.
Fix ESM support
This patch fixes the error, when there is no process.mainModule
in ESM mode #12
Update dependencies
Rebuilt with new AT dependency.
Resolved vulnerability issue.
Added major
and minor
GL version parameters to Window constructor.
Allow Dependency Patches
- Allow patch releases for dependencies in package.json