@ts-defold/types 1.2.11 → 1.2.12

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.
Files changed (2) hide show
  1. package/index.d.ts +45 -14
  2. 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.0 (0e77ba11ac957ee01878bbde2e6ac0c9fae6dc01)
5
+ // DEFOLD. stable version 1.3.1 (06bc078e490fd7d94ec01e38abac989f6cc351a5)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -3139,35 +3139,55 @@ declare namespace render {
3139
3139
  */
3140
3140
  export let FORMAT_LUMINANCE: any
3141
3141
 
3142
+ /**
3143
+ * May be nil if the format isn't supported
3144
+ */
3145
+ export let FORMAT_R16F: any
3146
+
3147
+ /**
3148
+ * May be nil if the format isn't supported
3149
+ */
3150
+ export let FORMAT_R32F: any
3151
+
3152
+ /**
3153
+ * May be nil if the format isn't supported
3154
+ */
3155
+ export let FORMAT_RG16F: any
3156
+
3157
+ /**
3158
+ * May be nil if the format isn't supported
3159
+ */
3160
+ export let FORMAT_RG32F: any
3161
+
3142
3162
  /**
3143
3163
  *
3144
3164
  */
3145
3165
  export let FORMAT_RGB: any
3146
3166
 
3147
3167
  /**
3148
- *
3168
+ * May be nil if the format isn't supported
3149
3169
  */
3150
- export let FORMAT_RGBA: any
3170
+ export let FORMAT_RGB16F: any
3151
3171
 
3152
3172
  /**
3153
- *
3173
+ * May be nil if the format isn't supported
3154
3174
  */
3155
- export let FORMAT_RGBA_DXT1: any
3175
+ export let FORMAT_RGB32F: any
3156
3176
 
3157
3177
  /**
3158
3178
  *
3159
3179
  */
3160
- export let FORMAT_RGBA_DXT3: any
3180
+ export let FORMAT_RGBA: any
3161
3181
 
3162
3182
  /**
3163
- *
3183
+ * May be nil if the format isn't supported
3164
3184
  */
3165
- export let FORMAT_RGBA_DXT5: any
3185
+ export let FORMAT_RGBA16F: any
3166
3186
 
3167
3187
  /**
3168
- *
3188
+ * May be nil if the format isn't supported
3169
3189
  */
3170
- export let FORMAT_RGB_DXT1: any
3190
+ export let FORMAT_RGBA32F: any
3171
3191
 
3172
3192
  /**
3173
3193
  *
@@ -3320,14 +3340,25 @@ declare namespace render {
3320
3340
  * system constants buffer is used containing constants as defined in materials and set through
3321
3341
  * go.set (or particlefx.set_constant) on visual components.
3322
3342
  * @param predicate predicate to draw for
3323
- * @param constants optional constants to use while rendering
3343
+ * @param options optional table with properties:
3344
+
3345
+ `frustum`
3346
+ A frustum matrix used to cull renderable items. (E.g. `local frustum = proj * view`). May be nil.
3347
+ `constants`
3348
+ optional constants to use while rendering
3349
+
3324
3350
  */
3325
- export function draw(predicate: any, constants?: any): void
3351
+ export function draw(predicate: any, options?: any): void
3326
3352
 
3327
3353
  /**
3328
3354
  * Draws all 3d debug graphics such as lines drawn with "draw_line" messages and physics visualization.
3355
+ * @param options optional table with properties:
3356
+
3357
+ `frustum`
3358
+ A frustum matrix used to cull renderable items. (E.g. `local frustum = proj * view`). May be nil.
3359
+
3329
3360
  */
3330
- export function draw_debug3d(): void
3361
+ export function draw_debug3d(options?: any): void
3331
3362
 
3332
3363
  /**
3333
3364
  * If another material was already enabled, it will be automatically disabled
@@ -3452,7 +3483,7 @@ declare namespace render {
3452
3483
  *
3453
3484
  *
3454
3485
  * `format`
3455
- * `render.FORMAT_LUMINANCE``render.FORMAT_RGB``render.FORMAT_RGBA` `render.FORMAT_RGB_DXT1``render.FORMAT_RGBA_DXT1``render.FORMAT_RGBA_DXT3` `render.FORMAT_RGBA_DXT5``render.FORMAT_DEPTH``render.FORMAT_STENCIL`
3486
+ * `render.FORMAT_LUMINANCE``render.FORMAT_RGB``render.FORMAT_RGBA``render.FORMAT_DEPTH``render.FORMAT_STENCIL``render.FORMAT_RGBA32F``render.FORMAT_RGBA16F`
3456
3487
  *
3457
3488
  *
3458
3489
  * `width`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [