@kmamal/sdl 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0",
2
+ "version": "0.4.2",
3
3
  "name": "@kmamal/sdl",
4
4
  "description": "SDL2 bindings for Node.js",
5
5
  "keywords": [
@@ -1227,6 +1227,7 @@ init (napi_env env, napi_value exports)
1227
1227
  { "audio_getQueueSize", NULL, audio_getQueueSize, NULL, NULL, NULL, napi_enumerable, NULL },
1228
1228
  { "audio_enqueue", NULL, audio_enqueue, NULL, NULL, NULL, napi_enumerable, NULL },
1229
1229
  { "audio_dequeue", NULL, audio_dequeue, NULL, NULL, NULL, napi_enumerable, NULL },
1230
+ { "audio_clearQueue", NULL, audio_clearQueue, NULL, NULL, NULL, napi_enumerable, NULL },
1230
1231
  { "events_poll", NULL, events_poll, NULL, NULL, NULL, napi_enumerable, NULL },
1231
1232
  { "events_wait", NULL, events_wait, NULL, NULL, NULL, napi_enumerable, NULL },
1232
1233
  { "keyboard_getKey", NULL, keyboard_getKey, NULL, NULL, NULL, napi_enumerable, NULL },
@@ -1250,7 +1251,7 @@ init (napi_env env, napi_value exports)
1250
1251
  { "cleanup", NULL, cleanup, NULL, NULL, NULL, napi_enumerable, NULL }
1251
1252
  };
1252
1253
 
1253
- CALL_NAPI(napi_define_properties, exports, 48, desc);
1254
+ CALL_NAPI(napi_define_properties, exports, 49, desc);
1254
1255
 
1255
1256
  cleanup:
1256
1257
  return exports;
@@ -256,6 +256,12 @@ export namespace Sdl {
256
256
  readonly borderless: boolean
257
257
  setBorderless (borderless: boolean): void
258
258
 
259
+ readonly accelerated: boolean
260
+ setAccelerated (accelerated: boolean): void
261
+
262
+ readonly vsync: boolean
263
+ setVsync (vsync: boolean): void
264
+
259
265
  readonly native: unknown
260
266
 
261
267
  readonly maximized: boolean
@@ -297,6 +303,8 @@ export namespace Sdl {
297
303
  fullscreen?: boolean
298
304
  resizable?: boolean
299
305
  borderless?: boolean
306
+ accelerated?: boolean
307
+ vsync?: boolean
300
308
  opengl?: boolean
301
309
  }): Window
302
310
  }