@ts-defold/types 1.2.17 → 1.2.18
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/index.d.ts +12 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="lua-types/5.1" />
|
|
3
3
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
4
4
|
|
|
5
|
-
// DEFOLD. stable version 1.3.
|
|
5
|
+
// DEFOLD. stable version 1.3.6 (905234d8da2e642f1075c73aaa1bfb72e49199e3)
|
|
6
6
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
7
7
|
|
|
8
8
|
|
|
@@ -3353,7 +3353,8 @@ declare namespace render {
|
|
|
3353
3353
|
export function clear(buffers: any): void
|
|
3354
3354
|
|
|
3355
3355
|
/**
|
|
3356
|
-
* Constant buffers are used to set shader program variables and are optionally passed to the `render.draw()` function.
|
|
3356
|
+
* Constant buffers are used to set shader program variables and are optionally passed to the `render.draw()` function.
|
|
3357
|
+
* The buffer's constant elements can be indexed like an ordinary Lua table, but you can't iterate over them with pairs() or ipairs().
|
|
3357
3358
|
* @return buffer new constant buffer
|
|
3358
3359
|
*/
|
|
3359
3360
|
export function constant_buffer(): any
|
|
@@ -4392,6 +4393,8 @@ might be nil if not available.
|
|
|
4392
4393
|
|
|
4393
4394
|
/**
|
|
4394
4395
|
* Returns a table with system information.
|
|
4396
|
+
* @param options (optional) options table
|
|
4397
|
+
this flag ignores values might be secured by OS e.g. `device_ident`
|
|
4395
4398
|
* @return sys_info table with system information in the following fields:
|
|
4396
4399
|
|
|
4397
4400
|
`device_model`
|
|
@@ -4418,7 +4421,7 @@ The current offset from GMT (Greenwich Mean Time), in minutes.
|
|
|
4418
4421
|
The HTTP user agent, i.e. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
|
|
4419
4422
|
|
|
4420
4423
|
*/
|
|
4421
|
-
export function get_sys_info(): any
|
|
4424
|
+
export function get_sys_info(options?: any): any
|
|
4422
4425
|
|
|
4423
4426
|
/**
|
|
4424
4427
|
* If the file exists, it must have been created by `sys.save` to be loaded.
|
|
@@ -5513,6 +5516,12 @@ declare namespace camera {
|
|
|
5513
5516
|
*/
|
|
5514
5517
|
export let near_z: any
|
|
5515
5518
|
|
|
5519
|
+
/**
|
|
5520
|
+
* Zoom level when using an orthographic projection.
|
|
5521
|
+
* The type of the property is float.
|
|
5522
|
+
*/
|
|
5523
|
+
export let orthographic_zoom: any
|
|
5524
|
+
|
|
5516
5525
|
/**
|
|
5517
5526
|
*
|
|
5518
5527
|
* Post this message to a camera-component to deactivate it. The camera is then removed from the active cameras.
|