Skip to content

Releases: node-3d/glfw-raub

Release 5.3.2

29 Oct 09:12
Compare
Choose a tag to compare

Added missing declarations to d.ts:

readonly platformDevice: number;
readonly platformWindow: number;
readonly platformContext: number;

Release 5.3.1

17 Oct 13:57
Compare
Choose a tag to compare

Improved TS declarations:

  • Added the missing Document constructor parameter autoEsc.
  • Adjusted the layout of JSDoc comments.

Release 5.3.0

17 Oct 10:33
Compare
Choose a tag to compare

Changed default Window size from 800x600 to HD 720.

Added missing events to Document:

  • pointerdown (same as mousedown)
  • pointerup (same as mouseup)
  • pointermove (same as mousemove)

Added missing cursor API to Document:

  • doc.setPointerCapture()
  • doc.releasePointerCapture()

Release 5.2.2

10 Oct 17:49
Compare
Choose a tag to compare
  • Improved TS declarations (fixed the ambient module mode).
  • Added Cpplint GH action.

Release 5.2.1

08 Oct 13:08
Compare
Choose a tag to compare
  • Updated dependencies.
  • Switched from Jest to Node.js test runner.

Release 5.2.0

27 Sep 16:13
Compare
Choose a tag to compare

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

09 May 10:56
Compare
Choose a tag to compare

Updated dependencies.

Release 5.0.0

07 Jan 11:53
Compare
Choose a tag to compare

Upgraded the GitHub build action and added Linux Aarch64 support.

Add Vulkan API

04 Dec 15:04
Compare
Choose a tag to compare

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

26 Nov 11:39
Compare
Choose a tag to compare

Updated dependencies and rebuilt with the latest NAPI and Node 16 LTS.