@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 +1 -1
- package/src/native/binding.cpp +2 -1
- package/src/types/index.d.ts +8 -0
package/package.json
CHANGED
package/src/native/binding.cpp
CHANGED
|
@@ -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,
|
|
1254
|
+
CALL_NAPI(napi_define_properties, exports, 49, desc);
|
|
1254
1255
|
|
|
1255
1256
|
cleanup:
|
|
1256
1257
|
return exports;
|
package/src/types/index.d.ts
CHANGED
|
@@ -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
|
}
|