Skip to content

Commit

Permalink
Add window platform ids to d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Oct 29, 2023
1 parent 6ea331e commit 22fe78c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ declare module "glfw-raub" {
/** Which OpenGL context is now current. */
readonly currentContext: number;

/** Platform device (e.g. `wglGetCurrentDC()` or `glfwGetX11Display()`). */
readonly platformDevice: number;

/** Platform-specific window handle (e.g. Windows HWND). */
readonly platformWindow: number;

/** Platform OpenGL context ID for this window. */
readonly platformContext: number;

/**
* Window display mode. Default is 'windowed'.
*
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "glfw-raub",
"version": "5.3.1",
"version": "5.3.2",
"description": "GLFW for Node.js",
"license": "MIT",
"main": "index.js",
Expand Down

0 comments on commit 22fe78c

Please sign in to comment.