Releases: node-3d/glfw-raub
Release 5.3.2
Added missing declarations to d.ts:
readonly platformDevice: number;
readonly platformWindow: number;
readonly platformContext: number;
Release 5.3.1
Improved TS declarations:
- Added the missing Document constructor parameter
autoEsc
. - Adjusted the layout of JSDoc comments.
Release 5.3.0
Changed default Window size from 800x600 to HD 720.
Added missing events to Document:
pointerdown
(same asmousedown
)pointerup
(same asmouseup
)pointermove
(same asmousemove
)
Added missing cursor API to Document:
doc.setPointerCapture()
doc.releasePointerCapture()
Release 5.2.2
- Improved TS declarations (fixed the ambient module mode).
- Added Cpplint GH action.
Release 5.2.1
- Updated dependencies.
- Switched from Jest to Node.js test runner.
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.